mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
🐛 fix pickCardsFromDeckTopAsyn
This commit is contained in:
parent
809de7cf3c
commit
938518e58a
1 changed files with 1 additions and 1 deletions
|
@ -2392,10 +2392,10 @@ Player.prototype.pickCardsFromDeckTopAsyn = function(count,filter,max) {
|
|||
if (!isNum(max)) max = 1;
|
||||
var cards = this.mainDeck.getTopCards(count);
|
||||
if (!cards.length) return;
|
||||
this.informCards(cards);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue