From 3cfb8ac60e3225b43e1d0f18b06de005c0246943 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Wed, 23 Oct 2024 23:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E9=94=AE=E5=BC=80?= =?UTF-8?q?=E7=81=AB=E5=81=B6=E5=B0=94=E4=BC=9A=E5=87=BA=E7=8E=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/controllers/game/actions/GameFireAction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/controllers/game/actions/GameFireAction.ts b/server/src/controllers/game/actions/GameFireAction.ts index e3c868e..82c975d 100644 --- a/server/src/controllers/game/actions/GameFireAction.ts +++ b/server/src/controllers/game/actions/GameFireAction.ts @@ -62,7 +62,7 @@ export class GameFireAction extends AbstractGameAction { if (config.strength) { this.fireStrength = Math.min(config.strength, FIRE_MAX_STRENGTH); - const strength = this.game.strengthConfig.strength + this.fireStrength; + const strength = Math.min(this.game.strengthConfig.strength + this.fireStrength, this.game.clientStrength.limit); this.game.setClientStrength(strength).catch((error) => { console.error('Failed to set strength:', error); });