forked from mirrors/webxoss-core
💫 implement excludeAfterUse for ARTS
This commit is contained in:
parent
1773a0aa6e
commit
6cf4f0e497
2 changed files with 5 additions and 2 deletions
|
@ -124136,7 +124136,7 @@ var CardInfo = {
|
|||
],
|
||||
artsEffect: [{
|
||||
actionAsyn: function (costArg,control) {
|
||||
control.excludeAfterUse = true; // TODO: ...
|
||||
control.excludeAfterUse = true;
|
||||
return this.player.selectSelfSigniAsyn().callback(this,function (card) {
|
||||
if (!card) return;
|
||||
return card.banishAsyn().callback(this,function (succ) {
|
||||
|
|
|
@ -740,6 +740,7 @@ Player.prototype.handleArtsAsyn = function (card,ignoreCost) {
|
|||
costArg = _costArg;
|
||||
card.activate();
|
||||
control = {
|
||||
excludeAfterUse: false,
|
||||
backToDeck: false,
|
||||
rtn: null // 当有多个效果时,这个作为返回值. <ブルー・パニッシュ>
|
||||
};
|
||||
|
@ -755,7 +756,9 @@ Player.prototype.handleArtsAsyn = function (card,ignoreCost) {
|
|||
}).callback(this,function (rtn) {
|
||||
// 4. 放到LRIG废弃区
|
||||
this.chain = card.chain; // 连锁
|
||||
if (encored || control.backToDeck) {
|
||||
if (control.excludeAfterUse) {
|
||||
card.moveTo(card.player.excludedZone);
|
||||
} else if (encored || control.backToDeck) {
|
||||
card.moveTo(card.player.lrigDeck);
|
||||
} else {
|
||||
card.moveTo(card.player.lrigTrashZone);
|
||||
|
|
Loading…
Reference in a new issue