summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/js/game.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/js/game.js b/resources/js/game.js
index 61e2211..5ab70bd 100644
--- a/resources/js/game.js
+++ b/resources/js/game.js
@@ -626,7 +626,9 @@ const Game = {
}
Game.addBattlePhaseEvent('postAction', monster, () => {
- monster.statusEffect.turnsLeft--;
+ if (monster.statusEffect) {
+ monster.statusEffect.turnsLeft--;
+ }
});
},