Hamstring.lua 670 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/Hamstring.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.11 10:10:02
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 211 - 352 melee damage on target
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, Snare)
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. if LastSpellAttackHit() then
  12. -- Slows target by 37.6%
  13. -- 5% chance to dispel when target receives hostile action
  14. -- 5% chance to dispel when target takes damage
  15. SetSpeedMultiplier(Target, ((100 - Snare) / 100))
  16. end
  17. end
  18. function remove(Caster, Target)
  19. SetSpeedMultiplier(Target, 1)
  20. end