fix WD17-008

This commit is contained in:
WEBXOSS 2017-03-05 11:51:22 +08:00
parent d29373b2f5
commit 1afb9d88e9
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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;