mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-02-07 14:23:39 +01:00
💩 coding card effects (WX17 blue)
💩 fix self review (WX17-blue)
This commit is contained in:
parent
d6e085c6d7
commit
3ceb807775
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