reload during arena

This commit is contained in:
Sumsebrum 2022-01-10 23:59:33 +01:00
parent 92322a4d9b
commit fed5d1c341

View File

@ -33,6 +33,16 @@ function EventListener:JOINED_ARENA()
self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START") self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START")
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED") self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
self:SetScript("OnEvent", EventListener.OnEvent) self:SetScript("OnEvent", EventListener.OnEvent)
-- in case arena has started already we check for units
for i=1,Gladdy.curBracket do
if UnitExists("arena" .. i) then
Gladdy:SpotEnemy("arena" .. i, true)
end
if UnitExists("arenapet" .. i) then
Gladdy:SendMessage("PET_SPOTTED", "arenapet" .. i)
end
end
end end
function EventListener:Reset() function EventListener:Reset()