mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-31 01:39:09 +01:00
💫 implement WX16-021 damageWhenAttackSigniZone
This commit is contained in:
parent
b43df10b84
commit
4e6dc83759
2 changed files with 6 additions and 2 deletions
7
Card.js
7
Card.js
|
@ -1375,7 +1375,12 @@ Card.prototype.attackAsyn = function () {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 伤害
|
// 伤害
|
||||||
if (target !== opposingSigni) return;
|
if (target !== opposingSigni) {
|
||||||
|
// 攻击非正面的区域
|
||||||
|
if (!this.game.getData(card.player,'damageWhenAttackSigniZone')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (event.wontBeDamaged || opponent.wontBeDamaged) return;
|
if (event.wontBeDamaged || opponent.wontBeDamaged) return;
|
||||||
crashArg.damage = true;
|
crashArg.damage = true;
|
||||||
if (opponent.lifeClothZone.cards.length) {
|
if (opponent.lifeClothZone.cards.length) {
|
||||||
|
|
|
@ -117749,7 +117749,6 @@ var CardInfo = {
|
||||||
],
|
],
|
||||||
artsEffect: {
|
artsEffect: {
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
// TODO: ...
|
|
||||||
this.game.setData(this.player,'damageWhenAttackSigniZone',true);
|
this.game.setData(this.player,'damageWhenAttackSigniZone',true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue