Skip to content

Commit

Permalink
Shard tracking: don't try to register vignette events on classic
Browse files Browse the repository at this point in the history
Fixes #280
  • Loading branch information
kemayo committed Aug 10, 2024
1 parent cd1f26c commit f194b8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions shards.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ function module:OnEnable()
self:RegisterEvent("PLAYER_TARGET_CHANGED")
self:RegisterEvent("UPDATE_MOUSEOVER_UNIT")
self:RegisterEvent("NAME_PLATE_UNIT_ADDED")
self:RegisterEvent("VIGNETTE_MINIMAP_UPDATED")
self:RegisterEvent("VIGNETTES_UPDATED")
if C_EventUtils.IsEventValid("VIGNETTE_MINIMAP_UPDATED") then
-- this needs to run in Classic, which doesn't have these
self:RegisterEvent("VIGNETTE_MINIMAP_UPDATED")
self:RegisterEvent("VIGNETTES_UPDATED")
end
-- todo: combat log as well?

-- Can't know it until we see an event
Expand Down

0 comments on commit f194b8f

Please sign in to comment.