🐛 fix WX16-017 arts

This commit is contained in:
WEBXOSS 2017-06-13 23:30:08 +08:00
parent 2317096a91
commit ef7ed0d582

View file

@ -117562,9 +117562,12 @@ var CardInfo = {
},this)); },this));
if (!cards.length) return; if (!cards.length) return;
return this.player.selectSomeAsyn('ADD_TO_HAND',cards).callback(this,function (cards) { return this.player.selectSomeAsyn('ADD_TO_HAND',cards).callback(this,function (cards) {
var count = cards.filter(function (card) {
return inArr(card,this.player.getTraps());
}).length;
this.game.moveCards(cards,this.player.handZone); this.game.moveCards(cards,this.player.handZone);
var done = false; var done = false;
return Callback.loop(this,cards.length,function () { return Callback.loop(this,count,function () {
if (done) return; if (done) return;
return this.player.selectAsyn('TARGET',this.player.hands).callback(this,function (card) { return this.player.selectAsyn('TARGET',this.player.hands).callback(this,function (card) {
if (!card) return done = true; if (!card) return done = true;