ImmobilizingLunge.lua 680 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/ImmobilizingLunge.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 06:03:49
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 58 - 97 melee damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Roots target
  16. -- If Target is not Epic
  17. if not IsEpic(Target) then
  18. SetSpeedMultiplier(Target, 0)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. SetSpeedMultiplier(Target, 1)
  23. end