my little file does not work anymore with patch:
could you help me fix the problem ?
Thank you
Code:
local Rezzer
local function OnEvent()
if event == "RESURRECT_REQUEST" then
if UnitAffectingCombat(arg1) == nil then
Rezzer = arg1
AcceptResurrect()
end
elseif Rezzer then
DoEmote("thank",Rezzer)
Rezzer = nil
end
end
local f = CreateFrame("Frame")
f:RegisterEvent("RESURRECT_REQUEST")
f:RegisterEvent("PLAYER_ALIVE")
f:RegisterEvent("PLAYER_UNGHOST")
f:SetScript("OnEvent", OnEvent)