From 045d7349453ee3e0c93662a42563398e4798a044 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Sun, 7 Aug 2022 07:08:48 +0200 Subject: [PATCH] go around wierd arenapet bug with hunter --- EventListener.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EventListener.lua b/EventListener.lua index f831442..305c813 100644 --- a/EventListener.lua +++ b/EventListener.lua @@ -386,7 +386,7 @@ function EventListener:UNIT_SPELLCAST_SUCCEEDED(...) end -- spec detection - if Gladdy.specSpells[spellName] and not Gladdy.buttons[unit].spec then + if spellName and Gladdy.specSpells[spellName] and not Gladdy.buttons[unit].spec then self:DetectSpec(unit, Gladdy.specSpells[spellName]) end @@ -397,7 +397,7 @@ function EventListener:UNIT_SPELLCAST_SUCCEEDED(...) end -- racial - if Gladdy:Racials()[unitRace].spellName == spellName and Gladdy:Racials()[unitRace][spellID] then + if unitRace and Gladdy:Racials()[unitRace].spellName == spellName and Gladdy:Racials()[unitRace][spellID] then Gladdy:Debug("INFO", "UNIT_SPELLCAST_SUCCEEDED - RACIAL_USED", unit, spellID) Gladdy:SendMessage("RACIAL_USED", unit) end