Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if event == "COMBAT_LOG_EVENT_UNFILTERED" then
- local arg = { ... }
- for i,v in ipairs(arg) do
- if (arg[2] == "SPELL_AURA_APPLIED") then
- local me = UnitName("player")
- if (arg[7] == me) then
- if (string.find(arg[i], "(.*)Raw(.*)Fury(.*)")) then
- print("spell aura applied")
- if not count then
- print("Setting count")
- count = 1
- else
- if (count == 5) then
- print("Count = " ..count)
- RaidNotice_AddMessage(RaidBossEmoteFrame,"Raw Fury has stacked to 5! Use the trinket now! " ..UnitName("player"), ChatTypeInfo["RAID_WARNING"]);
- PlaySoundFile("Sound\\interface\\RaidWarning.wav");
- count = 0
- else
- count = count + 1
- print("Adding to count " ..count)
- end
- end
- end
- if (string.find(arg[i], "(.*)Forged(.*)Fury(.*)")) then
- count = 0
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement