1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

v1.0 Beta 1 Patch 1

Fixed small bug, didn't bother putting in changelog bc I'm lazy
This commit is contained in:
Jacorb90 2020-09-08 22:14:23 -04:00
parent a3e2b1f9e4
commit 1adf91b5ee

View file

@ -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())