forked from mirrors/webxoss-core
fix PR-316 2nd effect
This commit is contained in:
parent
57dbaf9cf6
commit
538c5c2c3b
1 changed files with 10 additions and 6 deletions
16
CardInfo.js
16
CardInfo.js
|
@ -117645,12 +117645,16 @@ var CardInfo = {
|
||||||
},{
|
},{
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
this.game.trashCards(this.player.hands);
|
this.game.trashCards(this.player.hands);
|
||||||
var cards = this.player.trashZone.cards.filter(function (card) {
|
var done = false;
|
||||||
return card.hasClass('毒牙');
|
return Callback.loop(this,2,function () {
|
||||||
},this);
|
if (done) return;
|
||||||
return this.player.selectOptionalAsyn('SUMMON_SIGNI',cards).callback(this,function (card) {
|
var cards = this.player.trashZone.cards.filter(function (card) {
|
||||||
if (!card) return;
|
return card.hasClass('毒牙') && card.canSummon();
|
||||||
return card.summonAsyn();
|
},this);
|
||||||
|
return this.player.selectOptionalAsyn('SUMMON_SIGNI',cards).callback(this,function (card) {
|
||||||
|
if (!card) return done = true;
|
||||||
|
return card.summonAsyn();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in a new issue