Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 13, 2024
1 parent 1b98e5e commit 43d67df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '9aa7c69 2024-01-13' }
return { commitId = '1b98e5e 2024-01-13' }
13 changes: 11 additions & 2 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1029,9 +1029,18 @@ end
---@param spell MQSpell
---@return boolean
function Utils.SelfBuffCheck(spell)
if type(spell) == "string" then return Utils.BuffActiveByName(spell) end
if not spell or not spell() then return false end
if type(spell) == "string" then
RGMercsLogger.log_verbose("\agSelfBuffCheck(%s) string", spell)
return Utils.BuffActiveByName(spell)
end
if not spell or not spell() then
RGMercsLogger.log_verbose("\arSelfBuffCheck() Spell Invalid")
return false
end
local res = not Utils.BuffActiveByID(spell.ID()) and spell.Stacks()

RGMercsLogger.log_verbose("\arSelfBuffCheck(%s/%d) Spell Obj => %s", spell.RankName(), spell.ID(), Utils.BoolToString(res))

return res
end

Expand Down

0 comments on commit 43d67df

Please sign in to comment.