mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-18 11:46:03 +01:00
fix WD17-008
This commit is contained in:
parent
d29373b2f5
commit
1afb9d88e9
2 changed files with 3 additions and 2 deletions
|
@ -124964,7 +124964,8 @@ var CardInfo = {
|
|||
var filter = function (card) {
|
||||
return card.hasColor('red') && card.canSummon();
|
||||
};
|
||||
return this.player.searchAsyn(filter,1,0,true).callback(this,function (card) {
|
||||
return this.player.searchAsyn(filter,1,0,true).callback(this,function (cards) {
|
||||
var card = cards[0];
|
||||
if (!card) return;
|
||||
card.trashWhenTurnEnd();
|
||||
return card.summonAsyn(false,false,true);
|
||||
|
|
|
@ -654,7 +654,7 @@ Player.prototype.handleArtsAsyn = function (card,ignoreCost) {
|
|||
if (!card.bet) return;
|
||||
if (this.coin < card.bet) return;
|
||||
var bettedCost = Object.create(costObj);
|
||||
if (card.bettedCost) {
|
||||
if (card.bettedCost && !ignoreCost) {
|
||||
bettedCost = card.getChainedCostObj(card.bettedCost);
|
||||
}
|
||||
bettedCost.costCoin = card.bet;
|
||||
|
|
Loading…
Reference in a new issue