Merge pull request #38 from Deardrops/fix

fix WD17-006
This commit is contained in:
webxoss 2017-03-07 17:24:12 +08:00 committed by GitHub
commit c59381014a

View file

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