forked from mirrors/webxoss-core
fix wd17-006
This commit is contained in:
parent
c958f6ba77
commit
26ef1eabee
1 changed files with 1 additions and 0 deletions
1
Card.js
1
Card.js
|
@ -540,6 +540,7 @@ Card.prototype.canUse = function (timming,ignoreCost) {
|
|||
if (this.player.enoughCost(cost)) return true;
|
||||
// bet 相关
|
||||
if (this.bet && this.bettedCost) {
|
||||
if (this.bet > this.player.coin) return false; // 避免出现coin不够却可以选择使用技艺。《孤立无炎》
|
||||
cost = this.getChainedCostObj(this.bettedCost)
|
||||
if (this.player.enoughCost(cost)) return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue