From 1adf91b5ee2c4d16d2587e86ca4f2e81ba35d076 Mon Sep 17 00:00:00 2001 From: Jacorb90 <39597610+Jacorb90@users.noreply.github.com> Date: Tue, 8 Sep 2020 22:14:23 -0400 Subject: [PATCH] v1.0 Beta 1 Patch 1 Fixed small bug, didn't bother putting in changelog bc I'm lazy --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index ec8e6b3..85743f0 100644 --- a/js/game.js +++ b/js/game.js @@ -2975,7 +2975,7 @@ function activateSpell(x, force=false) { if (spellActive(x)) return if (player.m.points.lt(toCast)) return } - if (player.sp.total.lt(2)) player.m.points = player.m.points.sub(toCast) + if (player.sp.total.lt(2)) player.m.points = player.m.points.sub(toCast).max(0) player.m.casted[x] = toCast player.m.spellTimes[x] = getSpellTime() if (!force) player.m.hexes = player.m.hexes.plus(getHexGain())