mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
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
|
||||
leaveFieldEvent.oldZone.cards.forEach(function (card) {
|
||||
if (card === leaveFieldEvent.oldZone.trap) return;
|
||||
if (card === charm) {
|
||||
card.game.trashingCharms.push(card);
|
||||
} else {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue