racial cleanup
This commit is contained in:
parent
3c82edc441
commit
8fa481affe
@ -169,7 +169,6 @@ function Racial:UpdateFrame(unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Racial:JOINED_ARENA()
|
function Racial:JOINED_ARENA()
|
||||||
self:RegisterEvent("ARENA_COOLDOWNS_UPDATE")
|
|
||||||
self:SetScript("OnEvent", function(self, event, ...)
|
self:SetScript("OnEvent", function(self, event, ...)
|
||||||
if self[event] then
|
if self[event] then
|
||||||
self[event](self, ...)
|
self[event](self, ...)
|
||||||
@ -186,7 +185,7 @@ function Racial:RACIAL_USED(unit, expirationTime, spellName)
|
|||||||
if expirationTime and Gladdy:Racials()[button.race].spellName ~= spellName then
|
if expirationTime and Gladdy:Racials()[button.race].spellName ~= spellName then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local startTime = (expirationTime and expirationTime - Gladdy:Racials()[button.race].duration) or GetTime()
|
local startTime = expirationTime or GetTime()
|
||||||
Racial:Used(unit, startTime, Gladdy:Racials()[button.race].duration)
|
Racial:Used(unit, startTime, Gladdy:Racials()[button.race].duration)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user