fix common bugs

This commit is contained in:
WEBXOSS 2017-04-01 20:29:13 +08:00
parent 0cb82df17b
commit 2f874a6aa9
2 changed files with 2 additions and 1 deletions

View file

@ -973,6 +973,7 @@ Card.prototype.moveTo = function (zone,arg) {
// 此处理在块结束时执行。
// http://www.takaratomy.co.jp/products/wixoss/rule/rule_rulechange/151211/index.html
leaveFieldEvent.oldZone.cards.forEach(function (card) {
if (card === leaveFieldEvent.oldZone.trap) return;
if (card === charm) {
card.game.trashingCharms.push(card);
} else {

View file

@ -2360,7 +2360,7 @@ Player.prototype.setTrapFromDeckTopAsyn = function(count,max) {
};
Player.prototype.getTraps = function() {
return this.player.signiZones.filter(function (zone) {
return this.signiZones.filter(function (zone) {
return zone.trap;
}).map(function (zone) {
return zone.trap;