Skip to content

Commit

Permalink
Minor crash fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 2, 2024
1 parent eb9442e commit 02d5597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ function Utils.RunRotation(s, r, targetId, map, steps, start_step, bAllowMem)
end

if steps then
RGMercsLogger.log_verbose("Ended RunRotation(step(%d), start_step(%d), next(%d))", steps, start_step, lastStepIdx)
RGMercsLogger.log_verbose("Ended RunRotation(step(%d), start_step(%d), next(%d))", steps, (start_step or -1), lastStepIdx)
end

return lastStepIdx
Expand Down Expand Up @@ -1383,7 +1383,7 @@ end

function Utils.DetGOMCheck(spell)
local me = mq.TLO.Me
return me.Song("Gift of Mana").ID() and me.Song("Gift of Mana").Base(3) >= spell.Level()
return me.Song("Gift of Mana").ID() and me.Song("Gift of Mana").Base(3)() >= (spell.Level() or 0)
end

function Utils.DetGambitCheck()
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '46d2b60 2024-01-01' }
return { commitId = 'eb9442e 2024-01-01' }

0 comments on commit 02d5597

Please sign in to comment.