9
3

ParalyzingStrike.lua 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/ParalyzingStrike.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.10 06:02:27
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 188 - 313 melee damage on target
  9. -- Roots target
  10. -- If Target is not Epic
  11. -- 5% chance to dispel when target takes damage
  12. -- Resistibility increases against targets higher than level 29.
  13. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  14. Say(Caster, "Resistibility not implemented")
  15. SpellDamage(Target, DmgType, MinVal, MaxVal)
  16. if LastSpellAttackHit() then
  17. AddControlEffect(Target, 5)
  18. end
  19. if LastSpellAttackHit() then
  20. AddProc(Target, 15, 5)
  21. end
  22. end
  23. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  24. if Type == 15 then
  25. CancelSpell()
  26. end
  27. end
  28. function remove(Caster, Target)
  29. RemoveProc(Target)
  30. RemoveControlEffect(Target)
  31. end