Ensnare.lua 704 B

123456789101112131415161718192021222324
  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. Slow = 1.0 - Snare
  16. SetSpellSnareValue(Slow)
  17. AddControlEffect(11)
  18. end
  19. function remove(Caster, Target)
  20. RemoveControlEffect(11)
  21. end