Играю с
local frame = CreateFrame("Frame", "AutoRelease")
function eventHandler(self, event, arg1)
if event == "PLAYER_DEAD" then
local InstStat, InstType = IsInInstance();
if InstStat == 1 and InstType == "pvp" then
-- Check for soulstone
if not (HasSoulstone()) then
RepopMe();
end
end
return
end
end
frame:SetScript("OnEvent", eventHandler)
frame:RegisterEvent("PLAYER_DEAD")
и таких проблем нет)