go around wierd arenapet bug with hunter
This commit is contained in:
parent
f29985a06e
commit
045d734945
@ -386,7 +386,7 @@ function EventListener:UNIT_SPELLCAST_SUCCEEDED(...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- spec detection
|
-- 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])
|
self:DetectSpec(unit, Gladdy.specSpells[spellName])
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -397,7 +397,7 @@ function EventListener:UNIT_SPELLCAST_SUCCEEDED(...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- racial
|
-- 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:Debug("INFO", "UNIT_SPELLCAST_SUCCEEDED - RACIAL_USED", unit, spellID)
|
||||||
Gladdy:SendMessage("RACIAL_USED", unit)
|
Gladdy:SendMessage("RACIAL_USED", unit)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user