Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Remove lines 14 to 28 from DKFX.lua and replace with the following
- function DKFX_Onevent(self, event, ...)
- local playerName = UnitName("player")
- local arg1, arg2 = ...;
- local isInRaid = UnitInRaid(arg1)
- if (event == "UNIT_SPELLCAST_SUCCEEDED") then
- -- if (arg1 == "player") then
- if (isInRaid) then
- if (arg2 == "Death Grip") then
- DEFAULT_CHAT_FRAME:AddMessage(arg2 .. " cast by " .. UnitName(arg1).."!");
- PlaySoundFile("Interface\\AddOns\\DKFX\\DKFX.mp3")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement