Skip to content

Commit

Permalink
no spells during movement.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 13, 2024
1 parent ecf4cc2 commit 84b5e49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '6a443ca 2024-01-13' }
return { commitId = 'ecf4cc2 2024-01-13' }
6 changes: 6 additions & 0 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,12 @@ end
function Utils.UseSpell(spellName, targetId, bAllowMem)
local me = mq.TLO.Me
RGMercsLogger.log_debug("\ayUseSpell(%s, %d, %s)", spellName, targetId, Utils.BoolToString(bAllowMem))

if me.Moving() then
RGMercsLogger.log_debug("\ayUseSpell(%s, %d, %s) -- Failed because I am moving", spellName, targetId, Utils.BoolToString(bAllowMem))
return false
end

if spellName then
local spell = mq.TLO.Spell(spellName)

Expand Down

0 comments on commit 84b5e49

Please sign in to comment.