Advertisement
Khakhan

More stun code

Oct 1st, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. function(event, _, subevent, _, _, _, _, _, destGUID, _, _, _, spellID, spellName, _, auraType)
  2.     local e = aura_env
  3.     local reg = WeakAuras.regions[aura_env.id].region
  4.    
  5.     if not auraType or auraType ~= "DEBUFF" then return end
  6.    
  7.     for _, aoe_stuns in ipairs(e.aoe_stuns) do
  8.         local id, dur = aoe_stuns[1], aoe_stuns[2]
  9.         if id == spellID then
  10.             if subevent == "SPELL_AURA_APPLIED" then
  11.                 e.icon = spellName
  12.                 e.dur = dur
  13.                 e.now = GetTime()
  14.                
  15.                 if not e.mob_table[ destGUID ] then
  16.                     e.mob_table[ destGUID ] = true
  17.                     print(e.mob_table)
  18.                     e.mob_count = e.mob_count + 1
  19.                 end
  20.                 return true
  21.             end
  22.         end
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement