Skip to content

Commit

Permalink
Trigger Player/Conditions Instance Size: Fix events
Browse files Browse the repository at this point in the history
Use WA_PLAYER_ENTERED_WORLD since zone changes are actually not relevant

Fixes: #4554
  • Loading branch information
InfusOnWoW committed Aug 1, 2023
1 parent 2eb60e9 commit 82b7bd7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9600,17 +9600,11 @@ Private.event_prototypes = {
tinsert(events, "GROUP_ROSTER_UPDATE")
end

if trigger.use_instance_size ~= nil then
tinsert(events, "ZONE_CHANGED")
tinsert(events, "ZONE_CHANGED_INDOORS")
tinsert(events, "ZONE_CHANGED_NEW_AREA")
end

if trigger.use_instance_difficulty ~= nil or trigger.use_instance_type then
if trigger.use_instance_difficulty ~= nil
or trigger.use_instance_type ~= nil
or trigger.use_instance_size ~= nil
then
tinsert(events, "PLAYER_DIFFICULTY_CHANGED")
tinsert(events, "ZONE_CHANGED")
tinsert(events, "ZONE_CHANGED_INDOORS")
tinsert(events, "ZONE_CHANGED_NEW_AREA")
end

return {
Expand All @@ -9628,6 +9622,13 @@ Private.event_prototypes = {
tinsert(events, "PLAYER_MOVING_UPDATE");
end

if trigger.use_instance_difficulty ~= nil
or trigger.use_instance_type ~= nil
or trigger.use_instance_size ~= nil
then
tinsert(events, "WA_DELAYED_PLAYER_ENTERING_WORLD")
end

if (trigger.use_HasPet ~= nil) then
AddUnitChangeInternalEvents("pet", events)
end
Expand Down

0 comments on commit 82b7bd7

Please sign in to comment.