From ad43b55fb211df16933730fbd1f4a5e985e9db32 Mon Sep 17 00:00:00 2001 From: LunarTides <31688109+LunarTides@users.noreply.github.com> Date: Thu, 14 Dec 2023 08:43:51 +0100 Subject: [PATCH] fix: fix location card immortality Sorry --- src/core/game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/game.ts b/src/core/game.ts index 0d3e9905..a2258fd6 100644 --- a/src/core/game.ts +++ b/src/core/game.ts @@ -490,7 +490,7 @@ export class Game { const player = this.functions.util.getPlayerFromId(p); const spared: Card[] = []; - const shouldSpare = (card: Card) => (card.health ?? 1) > 0 || ((card.durability ?? 0) > 0); + const shouldSpare = (card: Card) => (card.health ?? 0) > 0 || ((card.durability ?? 0) > 0); for (const card of this.board[p]) { if (shouldSpare(card)) {