16HeX16

OnWindUp.lua

Feb 24th, 2014
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. _ENV = AdvancedCallback:register('OnWindUp')
  2.  
  3. function OnProcessSpell(unit, spell)
  4.     if string.find(spell.name, "Attack") then
  5.         DelayAction(
  6.             function(unit, attack) AdvancedCallback:OnWindUp(unit, attack) end,
  7.             spell.windUpTime - GetLatency() / 2000,
  8.             {unit, {name = spell.name, target = spell.target}}
  9.         )
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment