stoneharry

Untitled

Sep 23rd, 2012
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. function IncDuration(self, elapsed)
  2.     dur = dur + elapsed;
  3.     if dur > 0.05 then
  4.         local me = UnitName("player")
  5.  
  6.         if curWho < maxWho then
  7.  
  8.             TargetUnit(who[curWho])
  9.             if UnitName("target") then
  10.                 if UnitName("target") ~=  me then
  11.                     CastSpellByName("Crown Parcel Service Uniform")
  12.                 end
  13.             end
  14.             curWho = curWho + 1
  15.        
  16.         else
  17.             curWho = 1
  18.         end
  19.  
  20.         dur = 0
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment