Skip to content

Commit

Permalink
Fix IsSpellInRange
Browse files Browse the repository at this point in the history
InfusOnWoW committed Jul 21, 2024
1 parent 07aa5b8 commit 394af3a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
@@ -214,6 +214,14 @@ spelloverlay_frame:SetScript("OnEvent", function(self, event, spellId)
specDB.spellsWithGlowOverlay[spellId] = true
end)

local IsSpellInRange = IsSpellInRange
if not IsSpellInRange then
IsSpellInRange = function(...)
local r = C_Spell.IsSpellInRange(...)
return r and 1 or 0
end
end

local function checkTargetedSpells()
for spellId in pairs(specDB.spellsWithCd) do
local spellName = GetSpellInfo(spellId)
@@ -591,7 +599,9 @@ local bannedCds = {
}

function export()
DevTool:AddData(specDB, "specDB")
if DevTool and DevTool.AddData then
DevTool:AddData(specDB, "specDB")
end

local buffs =
" [1] = {\n" ..

0 comments on commit 394af3a

Please sign in to comment.