Skip to content

Commit

Permalink
fix(combat): buffs and debuffs will no longer tick if combat is won b…
Browse files Browse the repository at this point in the history
…y someone. closes #117
  • Loading branch information
seiyria committed Feb 25, 2023
1 parent 42df3b8 commit c04771b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/combat/combat.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export function tickPlayerEffects(ctx: StateContext<IGameCombat>) {
return;
}

if(isDead(currentPlayer)) {
if(isDead(currentPlayer) || hasAnyoneWonCombat(ctx)) {
return;
}

Expand Down

0 comments on commit c04771b

Please sign in to comment.