implement WX15-010

This commit is contained in:
WEBXOSS 2017-03-27 23:42:12 +08:00
parent 9846f4e3b5
commit 553fdbb0f1
2 changed files with 7 additions and 3 deletions

View file

@ -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;
};

View file

@ -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);
});
}
}