mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-02-13 16:13:26 +01:00
implement WX15-010
This commit is contained in:
parent
9846f4e3b5
commit
553fdbb0f1
2 changed files with 7 additions and 3 deletions
5
Card.js
5
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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue