Advertisement
Rochet2

Infected Wounds

May 5th, 2012
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local T =
  2. {
  3.     [33876] = true,
  4.     [33982] = true,
  5.     [33983] = true,
  6.     [48565] = true,
  7.     [48566] = true,
  8.    
  9.     ["aura"] = {48483, 48484, 48485},
  10.     ["spell"] = {58179, 58180, 58181},
  11. }
  12.  
  13. local function InfectedWounds (event, plr, spellid)
  14.     if(T[spellid]) then
  15.         local target = plr:GetSelection()
  16.         if(target) then
  17.             for k, v in ipairs (T.aura) do
  18.                 if(plr:HasAura(v)) then
  19.                     plr:CastSpellOnTarget(T.spell[k], target)
  20.                     break
  21.                 end
  22.             end
  23.         end
  24.     end
  25. end
  26.  
  27. RegisterServerHook(10, InfectedWounds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement