Skip to content

Commit

Permalink
Avoid acting on event spam in delves/instances. Fixes performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ynazar1 committed Oct 1, 2024
1 parent d0c79b0 commit 01bdb6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,10 @@ function SMARTBUFF_OnEvent(self, event, ...)
end
end

if event == "ZONE_CHANGED_NEW_AREA" or event == "GROUP_ROSTER_UPDATE" then
-- TODO: This is a blizzard bug workaround that spams GROUP_ROSTER_UPDATE during delves
local name, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceID, instanceGroupSize, LfgDungeonID =
GetInstanceInfo()
if event == "ZONE_CHANGED_NEW_AREA" or (event == "GROUP_ROSTER_UPDATE" and instanceType ~= "scenario") then
SMARTBUFF_SetTemplate()
end
end
Expand Down

0 comments on commit 01bdb6d

Please sign in to comment.