From 36b9ad8697c1859237c97fe37e70112a08fd8ee3 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Tue, 16 May 2017 17:07:46 +0800 Subject: [PATCH] fix trap If the attacking SIGNI leaves field after trap effects, cancel that attack. --- Card.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Card.js b/Card.js index caa385b..856c463 100644 --- a/Card.js +++ b/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; // 若攻击的目标存在,进行战斗;