Mutilate.lua 851 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/Mutilate.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.14 07:10:19
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DotType, DotMin, AttkSpeed)
  9. -- Inflicts 4 - 14 slashing damage on target
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. if LastSpellAttackHit() then
  12. -- Inflicts 10 slashing damage on target instantly and every 4 seconds
  13. SpellDamage(Target, DotType, DotMin)
  14. -- Decreases Haste of target by 5.1
  15. AddSpellBonus(Target, 617, AttkSpeed)
  16. end
  17. end
  18. function tick(Caster, Target, DmgType, MinVal, MaxVal, DotType, DotMin, AttkSpeed)
  19. SpellDamage(Target, DotType, DotMin)
  20. end
  21. function remove(Caster, Target)
  22. RemoveSpellBonus(Target)
  23. end