9
3

Brambles.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Spells/Priest/Druid/Fury/Brambles.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.14 03:01:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Hate, Snare)
  9. -- Stifles targets in Area of Effect
  10. -- If Target is not Epic
  11. if not IsEpic(Target) then
  12. AddControlEffect(Target, 2)
  13. end
  14. -- Decreases Threat to targets in Area of Effect by 323
  15. -- Decreases threat priority of targets in Area of Effect by 1 position
  16. AddHate(Caster, Target, Hate, 1)
  17. -- Slows targets in Area of Effect by 31.5%
  18. SetSpeedMultiplier(Target, (100 - Snare))
  19. -- 10% chance to dispel when target receives hostile action
  20. -- 10% chance to dispel when target takes damage
  21. AddProc(Target, 2, 10.0)
  22. end
  23. function proc(Caster, Target, Type)
  24. if Type == 2 then
  25. Say(Caster, "Not Implemented: cancel spell")
  26. end
  27. end
  28. function remove(Caster, Target)
  29. RemoveControlEffect(Target, 2)
  30. SetSpeedMultiplier(Target, 1.0)
  31. end