1
0
Fork 1
mirror of https://github.com/webxoss/webxoss-core.git synced 2025-04-04 01:49:16 +02:00

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; var cards = filter? zone.cards.filter(filter) : zone.cards;
return this.selectSomeAsyn('ADD_TO_HAND',cards,min,max).callback(this,function (cards) { return this.selectSomeAsyn('ADD_TO_HAND',cards,min,max).callback(this,function (cards) {
if (!cards.length) return; if (!cards.length) return;
return this.opponent.showCardsAsyn(cards); return this.opponent.showCardsAsyn(cards).callback(this,function () {
}).callback(this,function () { this.game.moveCards(cards,this.handZone);
this.game.moveCards(cards,this.handZone); });
}); });
}; };