mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-02 00:46:57 +00:00
Replace saved-handler wrappers with HookScript; use intrinsic pre/postcall bindings for barbershop and SetHighlight
This commit is contained in:
+1
-3
@@ -96,12 +96,10 @@ end
|
||||
libpredict:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
libpredict:RegisterEvent("RAID_ROSTER_UPDATE")
|
||||
libpredict:RegisterEvent("PARTY_MEMBERS_CHANGED")
|
||||
local origOnEvent = libpredict:GetScript("OnEvent")
|
||||
libpredict:SetScript("OnEvent", function()
|
||||
libpredict:HookScript("OnEvent", function()
|
||||
if event == "PLAYER_ENTERING_WORLD" or event == "RAID_ROSTER_UPDATE" or event == "PARTY_MEMBERS_CHANGED" then
|
||||
cacheRaidNames()
|
||||
end
|
||||
if origOnEvent then origOnEvent() end
|
||||
end)
|
||||
|
||||
-- Own cast-time spell started (heals + rez)
|
||||
|
||||
Reference in New Issue
Block a user