Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. function Abar_event(self, event, ...)
  2.  
  3.   if event == "VARIABLES_LOADED" then Abar_loaded() end
  4.   local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 = ...;
  5.  
  6.   if event == "COMBAT_LOG_EVENT_UNFILTERED" then
  7.     if arg4 and arg9 then
  8.         if arg4 == UnitGUID("playertarget") and arg8 == UnitGUID("playertargettarget") and abar.mob == true then
  9.             if arg2 == "SWING_DAMAGE" or arg2 == "SWING_MISSED" then
  10.                 ebar_set("")
  11.                
  12.                 if arg2 == "SWING_MISSED" and arg11 == "PARRY" and arg8 == UnitGUID("player") then
  13.                     Abar_parry("")
  14. --                  if arg9 then message(arg9) end
  15.                 end
  16.                 return
  17.             end
  18.         end
  19.     end  
  20.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement