diff --git a/Card.js b/Card.js index 7ac4a6c..b9591e1 100644 --- a/Card.js +++ b/Card.js @@ -1585,6 +1585,11 @@ Card.prototype.canBeBanished = function () { return false; } } + var count = this.game.getData(this,'banishProtectCount') || 0 + if (count) { + this.game.setData(this,'banishProtectCount',count-1); + return false; + } return true; }; diff --git a/CardInfo.js b/CardInfo.js index 2001891..db8d6f5 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -132784,10 +132784,9 @@ var CardInfo = { actionAsyn: function () { this.player.signis.forEach(function (signi) { if (!signi.hasClass('武勇')) return; - // !TODO... - var count = this.game.getData(signi,'_2128') || 0; + var count = this.game.getData(signi,'banishProtectCount') || 0; count++; - this.game.setData(signi,'_2128',count); + this.game.setData(signi,'banishProtectCount',count); }); } }