9
3

Ensnare.lua 699 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/Ensnare.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 06:03:27
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Mit, Snare)
  9. -- Decreases Mitigation of target vs elemental damage by 197
  10. AddSpellBonus(Target, 201, Mit)
  11. -- Applies Snare. Lasts for 24.0 seconds.
  12. -- Slows target by 28.3%
  13. -- 5% chance to dispel when target receives hostile action
  14. -- 5% chance to dispel when target takes damage
  15. local Slow = 100.0 - Snare
  16. SetSpeedMultiplier(Target, Slow)
  17. end
  18. function remove(Caster, Target)
  19. SetSpeedMultiplier(Target, 1)
  20. end