mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-02-07 14:23:39 +01:00
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;
|
if (this.player.enoughCost(cost)) return true;
|
||||||
// bet 相关
|
// bet 相关
|
||||||
if (this.bet && this.bettedCost) {
|
if (this.bet && this.bettedCost) {
|
||||||
|
if (this.bet > this.player.coin) return false; // 避免出现coin不够却可以选择使用技艺。《孤立无炎》
|
||||||
cost = this.getChainedCostObj(this.bettedCost)
|
cost = this.getChainedCostObj(this.bettedCost)
|
||||||
if (this.player.enoughCost(cost)) return true;
|
if (this.player.enoughCost(cost)) return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue