1
0
Fork 0

fix PR-316 2nd effect

This commit is contained in:
WEBXOSS 2017-03-11 19:53:41 +08:00
parent 57dbaf9cf6
commit 538c5c2c3b

View file

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