Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ MOD.suppress = true -- this is set when certain special effects are to be disabl
MOD.combatTimer = 0 -- if not 0 then this is set to the time when the player last entered combat
MOD.status = {} -- global status info cached by conditions module on every update

local hasFocus = WOW_PROJECT_ID != WOW_PROJECT_CLASSIC
local doUpdate = true -- set by any event that can change bars (used to throttle major updates)
local forceUpdate = false -- set to cause immediate update (reserved for critical changes like to player's target or focus)
local suppressTime = nil -- set when addon code is loaded
Expand Down Expand Up @@ -841,12 +842,15 @@ function MOD:OnEnable()
end)
end
else -- register events that are not implemented in classic
self:RegisterEvent("PLAYER_FOCUS_CHANGED")
self:RegisterEvent("PLAYER_TALENT_UPDATE", CheckTalentSpecialization)
self:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED", CheckTalentSpecialization)
self:RegisterEvent("VEHICLE_UPDATE")
self:RegisterEvent("RUNE_POWER_UPDATE", TriggerCooldownUpdate)
end

if hasFocus then
self:RegisterEvent("PLAYER_FOCUS_CHANGED")
end

MOD:InitializeBars() -- initialize routine that manages the bar library
MOD:InitializeMedia(media) -- add sounds to LibSharedMedia
Expand Down