mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-18 19:56:02 +01:00
Fix WD12-006 costChangeAsync
This commit is contained in:
parent
496b66db44
commit
71aa615463
1 changed files with 2 additions and 1 deletions
|
@ -75067,7 +75067,8 @@ var CardInfo = {
|
|||
var cards = this.player.hands.filter(function (card) {
|
||||
return card.hasClass('遊具');
|
||||
},this);
|
||||
return this.player.selectOptionalAsyn('TRASH',cards).callback(this,function (card) {
|
||||
var optional = this.player.enoughEner(obj);
|
||||
return this.player.selectAsyn('TRASH',cards,optional).callback(this,function (card) {
|
||||
if (!card) return obj;
|
||||
card.trash();
|
||||
obj.costGreen -= 2;
|
||||
|
|
Loading…
Reference in a new issue