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 () {
|
||||
this.game.trashCards(this.player.hands);
|
||||
var cards = this.player.trashZone.cards.filter(function (card) {
|
||||
return card.hasClass('毒牙');
|
||||
},this);
|
||||
return this.player.selectOptionalAsyn('SUMMON_SIGNI',cards).callback(this,function (card) {
|
||||
if (!card) return;
|
||||
return card.summonAsyn();
|
||||
var done = false;
|
||||
return Callback.loop(this,2,function () {
|
||||
if (done) return;
|
||||
var cards = this.player.trashZone.cards.filter(function (card) {
|
||||
return card.hasClass('毒牙') && card.canSummon();
|
||||
},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