librange: abort on non-healing classes

This commit is contained in:
shagu
2019-12-16 11:02:14 +01:00
parent bf493645c1
commit 2492abf843
+3
View File
@@ -46,6 +46,9 @@ if pfUI.expansion == "tbc" then
librange:RegisterEvent("LEARNED_SPELL_IN_TAB")
librange:RegisterEvent("PLAYER_ENTERING_WORLD")
librange:SetScript("OnEvent", function()
-- abort on non healing classes
if not spells[class] then return end
for i = 1, GetNumSpellTabs() do
local _, _, offset, num = GetSpellTabInfo(i)
for id = offset + 1, offset + num do