From 26ef1eabeeaff4b1f97f354bb18783fad080161a Mon Sep 17 00:00:00 2001 From: deardrops Date: Mon, 6 Mar 2017 13:45:40 +0800 Subject: [PATCH] fix wd17-006 --- Card.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Card.js b/Card.js index 2cd196f..18ef324 100644 --- a/Card.js +++ b/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; }