From 4e6dc83759aa203816b6d9433015c6e2d7b5a512 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Fri, 9 Jun 2017 10:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20implement=20WX16-021=20damageWhe?= =?UTF-8?q?nAttackSigniZone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Card.js | 7 ++++++- CardInfo.js | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Card.js b/Card.js index 626e6b8..659e3fd 100644 --- a/Card.js +++ b/Card.js @@ -1375,7 +1375,12 @@ Card.prototype.attackAsyn = function () { }); } else { // 伤害 - if (target !== opposingSigni) return; + if (target !== opposingSigni) { + // 攻击非正面的区域 + if (!this.game.getData(card.player,'damageWhenAttackSigniZone')) { + return; + } + } if (event.wontBeDamaged || opponent.wontBeDamaged) return; crashArg.damage = true; if (opponent.lifeClothZone.cards.length) { diff --git a/CardInfo.js b/CardInfo.js index b5db074..1923c31 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -117749,7 +117749,6 @@ var CardInfo = { ], artsEffect: { actionAsyn: function () { - // TODO: ... this.game.setData(this.player,'damageWhenAttackSigniZone',true); } }