forked from mirrors/webxoss-core
💩 coding card effects (WX17 blue)
💩 fix self review (WX17-blue)
This commit is contained in:
parent
ba40ffd96f
commit
e82e7d4c75
2 changed files with 984 additions and 468 deletions
1448
CardInfo.js
1448
CardInfo.js
File diff suppressed because it is too large
Load diff
|
@ -2157,9 +2157,9 @@ Player.prototype.pickCardAsyn = function (filter,min,max,zone) {
|
||||||
if (!zone) zone = this.trashZone;
|
if (!zone) zone = this.trashZone;
|
||||||
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).callback(this,function () {
|
return this.opponent.showCardsAsyn(cards).callback(this,function () {
|
||||||
this.game.moveCards(cards,this.handZone);
|
return this.game.moveCards(cards,this.handZone);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue