Skip to content

Commit

Permalink
Merge pull request #4476 from johnnylam88/fix/reflectable-spells-tww2
Browse files Browse the repository at this point in the history
feat: add reflectable spells for TWW Season 2
  • Loading branch information
Hekili authored Mar 4, 2025
2 parents 08342c8 + ea37f00 commit a4d1f0e
Show file tree
Hide file tree
Showing 5 changed files with 548 additions and 273 deletions.
6 changes: 4 additions & 2 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,11 @@ RegisterEvent( "PLAYER_ENTERING_WORLD", function( event, login, reload )
state.combat = GetTime() - 0.01
end

local _, zone = GetInstanceInfo()
local _, zone, _, _, _, _, _, instanceID = GetInstanceInfo()
state.bg = zone == "pvp"
state.arena = zone == "arena"
state.torghast = IsInJailersTower()
state.instance_id = instanceID or -1

Hekili:BuildUI()
end
Expand Down Expand Up @@ -378,10 +379,11 @@ end

do
local function UpdateZoneInfo()
local _, zone = GetInstanceInfo()
local _, zone, _, _, _, _, _, instanceID = GetInstanceInfo()
state.bg = zone == "pvp"
state.arena = zone == "arena"
state.torghast = IsInJailersTower()
state.instance_id = instanceID or -1
end

RegisterEvent( "ZONE_CHANGED", UpdateZoneInfo )
Expand Down
Loading

0 comments on commit a4d1f0e

Please sign in to comment.