Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local inter = CreateFrame("Frame", "Interruptor", UIParent)
  2.  
  3. function inter:UNIT_SPELLCAST_START(event, unitID, spell, rank, lineID, spellID)
  4.      print"Spell cast start for " .. spell);
  5. end
  6.  
  7. inter:SetScript("OnEvent",
  8.                     function(self, event, ...)
  9.                             if self[event] then
  10.                                     return self[event] (self, event, ...)
  11.                             end
  12.                     end)
  13. inter:RegisterEvent("UNIT_SPELLCAST_START")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement