forked from mirrors/webxoss-core
fix trap
If the attacking SIGNI leaves field after trap effects, cancel that attack.
This commit is contained in:
parent
83ecf5baa9
commit
36b9ad8697
1 changed files with 4 additions and 0 deletions
4
Card.js
4
Card.js
|
@ -1208,6 +1208,10 @@ Card.prototype.attackAsyn = function () {
|
|||
return card.handleTrapAsyn();
|
||||
});
|
||||
}).callback(this,function () {
|
||||
// 强制结束回合
|
||||
if (this.game.phase.checkForcedEndTurn()) return;
|
||||
// 攻击的卡不在场上,结束处理.
|
||||
if (!inArr(card,player.signis)) return;
|
||||
// 攻击被无效,结束处理
|
||||
if (event.prevented) return;
|
||||
// 若攻击的目标存在,进行战斗;
|
||||
|
|
Loading…
Reference in a new issue