Hi all, How to let dbm mark players affected by gul'dan 's skill Flames of sargeras ?
I also tried write some standalone code to do that job, but it's not work in raid. below is my code, any helps appreciated
local MyIdx = 1
local dangerSpell = 221606 -- night hold , boss10 p3, sagras's flame
local MyFrame = CreateFrame("Frame", "MyFrame", UIParent)
MyFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
MyFrame:SetScript("OnEvent",
function(self, event, ...)
local _,type,_,_,_,_,_,_,destName,_,_,auraId = ...
if (type == "SPELL_AURA_APPLIED") then
--print(...)
if (auraId == dangerSpell) then
print(destName)
SetRaidTarget(destName, MyIdx)
MyIdx = MyIdx + 1
if (MyIdx == 8) then
MyIdx = 1
end
end
elseif (type == "SPELL_AURA_REMOVED") then
if (auraId == dangerSpell) then
SetRaidTarget(destName, 0)
end
end
end
)
[Added]Gul'dan-Flames of sargeras, mark player with Icon
Return to “Discussion & Feature Requests”
Who is online
Users browsing this forum: No registered users and 1 guest