Ensnare.lua 704 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, BonusAmt)
  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