Skip to content

Commit

Permalink
fix: fix location card immortality
Browse files Browse the repository at this point in the history
Sorry
  • Loading branch information
LunarTides committed Dec 14, 2023
1 parent 4c98a70 commit ad43b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit ad43b55

Please sign in to comment.