mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +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:
parent
a3e2b1f9e4
commit
1adf91b5ee
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue