forked from mirrors/webxoss-core
fix common bugs
This commit is contained in:
parent
0cb82df17b
commit
2f874a6aa9
2 changed files with 2 additions and 1 deletions
1
Card.js
1
Card.js
|
@ -973,6 +973,7 @@ Card.prototype.moveTo = function (zone,arg) {
|
||||||
// 此处理在块结束时执行。
|
// 此处理在块结束时执行。
|
||||||
// http://www.takaratomy.co.jp/products/wixoss/rule/rule_rulechange/151211/index.html
|
// http://www.takaratomy.co.jp/products/wixoss/rule/rule_rulechange/151211/index.html
|
||||||
leaveFieldEvent.oldZone.cards.forEach(function (card) {
|
leaveFieldEvent.oldZone.cards.forEach(function (card) {
|
||||||
|
if (card === leaveFieldEvent.oldZone.trap) return;
|
||||||
if (card === charm) {
|
if (card === charm) {
|
||||||
card.game.trashingCharms.push(card);
|
card.game.trashingCharms.push(card);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2360,7 +2360,7 @@ Player.prototype.setTrapFromDeckTopAsyn = function(count,max) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Player.prototype.getTraps = function() {
|
Player.prototype.getTraps = function() {
|
||||||
return this.player.signiZones.filter(function (zone) {
|
return this.signiZones.filter(function (zone) {
|
||||||
return zone.trap;
|
return zone.trap;
|
||||||
}).map(function (zone) {
|
}).map(function (zone) {
|
||||||
return zone.trap;
|
return zone.trap;
|
||||||
|
|
Loading…
Reference in a new issue