mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-31 01:39:09 +01:00
🐛 fix player.pickCardsFromDeckTopAsyn not informing cards
This commit is contained in:
parent
5fbc99f867
commit
d0b8a0dedc
1 changed files with 1 additions and 0 deletions
|
@ -2385,6 +2385,7 @@ Player.prototype.pickCardsFromDeckTopAsyn = function(count,filter,max) {
|
||||||
var targets = cards.filter(filter);
|
var targets = cards.filter(filter);
|
||||||
return Callback.immediately().callback(this,function () {
|
return Callback.immediately().callback(this,function () {
|
||||||
if (!targets.length) return;
|
if (!targets.length) return;
|
||||||
|
this.informCards(cards);
|
||||||
return this.selectSomeAsyn('ADD_TO_HAND',targets,0,max,false,cards).callback(this,function (targets) {
|
return this.selectSomeAsyn('ADD_TO_HAND',targets,0,max,false,cards).callback(this,function (targets) {
|
||||||
return this.opponent.showCardsAsyn(targets).callback(this,function () {
|
return this.opponent.showCardsAsyn(targets).callback(this,function () {
|
||||||
this.game.moveCards(targets,this.handZone);
|
this.game.moveCards(targets,this.handZone);
|
||||||
|
|
Loading…
Reference in a new issue