1
0
Fork 0

Fix player.pickCardAsyn()

This commit is contained in:
WEBXOSS 2016-10-31 00:56:15 +08:00
parent 8bdd3a34ed
commit 667e44cbbc

View file

@ -1986,9 +1986,9 @@ Player.prototype.pickCardAsyn = function (filter,min,max,zone) {
var cards = filter? zone.cards.filter(filter) : zone.cards;
return this.selectSomeAsyn('ADD_TO_HAND',cards,min,max).callback(this,function (cards) {
if (!cards.length) return;
return this.opponent.showCardsAsyn(cards);
}).callback(this,function () {
this.game.moveCards(cards,this.handZone);
return this.opponent.showCardsAsyn(cards).callback(this,function () {
this.game.moveCards(cards,this.handZone);
});
});
};