1
0
Fork 0

🐛 fix player.pickCardsFromDeckTopAsyn not informing cards

This commit is contained in:
WEBXOSS 2017-06-20 23:49:02 +08:00
parent 5fbc99f867
commit d0b8a0dedc

View file

@ -2385,6 +2385,7 @@ Player.prototype.pickCardsFromDeckTopAsyn = function(count,filter,max) {
var targets = cards.filter(filter);
return Callback.immediately().callback(this,function () {
if (!targets.length) return;
this.informCards(cards);
return this.selectSomeAsyn('ADD_TO_HAND',targets,0,max,false,cards).callback(this,function (targets) {
return this.opponent.showCardsAsyn(targets).callback(this,function () {
this.game.moveCards(targets,this.handZone);