Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. -- Remove lines 14 to 28 from DKFX.lua and replace with the following
  2.  
  3. function DKFX_Onevent(self, event, ...)
  4.     local playerName = UnitName("player")
  5.     local arg1, arg2 = ...;
  6.     local isInRaid = UnitInRaid(arg1)
  7.  
  8.     if (event == "UNIT_SPELLCAST_SUCCEEDED") then
  9.    
  10.         -- if (arg1 == "player") then
  11.         if (isInRaid) then
  12.             if (arg2 == "Death Grip") then
  13.                 DEFAULT_CHAT_FRAME:AddMessage(arg2 .. " cast by " .. UnitName(arg1).."!");
  14.                 PlaySoundFile("Interface\\AddOns\\DKFX\\DKFX.mp3")
  15.             end
  16.            
  17.         end
  18.     end
  19.  
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement