mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-31 01:39:09 +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) {
|
var filter = function (card) {
|
||||||
return card.hasColor('red') && card.canSummon();
|
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;
|
if (!card) return;
|
||||||
card.trashWhenTurnEnd();
|
card.trashWhenTurnEnd();
|
||||||
return card.summonAsyn(false,false,true);
|
return card.summonAsyn(false,false,true);
|
||||||
|
|
|
@ -654,7 +654,7 @@ Player.prototype.handleArtsAsyn = function (card,ignoreCost) {
|
||||||
if (!card.bet) return;
|
if (!card.bet) return;
|
||||||
if (this.coin < card.bet) return;
|
if (this.coin < card.bet) return;
|
||||||
var bettedCost = Object.create(costObj);
|
var bettedCost = Object.create(costObj);
|
||||||
if (card.bettedCost) {
|
if (card.bettedCost && !ignoreCost) {
|
||||||
bettedCost = card.getChainedCostObj(card.bettedCost);
|
bettedCost = card.getChainedCostObj(card.bettedCost);
|
||||||
}
|
}
|
||||||
bettedCost.costCoin = card.bet;
|
bettedCost.costCoin = card.bet;
|
||||||
|
|
Loading…
Reference in a new issue