Sever.lua 947 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/Sever.lua
  3. Script Author : John Adams
  4. Script Date : 2014.01.11 05:01:23
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, DoTVal, DmgType, MinVal, MaxVal, AttackSpeed)
  9. -- Inflicts 17 slashing damage on target instantly and every 4 seconds
  10. SpellDamage(Target, DoTType, DoTVal)
  11. -- Decreases Damage Per Second of target by 6.0
  12. AddSpellBonus(Target, 617, AttackSpeed)
  13. -- Inflicts 12 - 21 slashing damage on target
  14. if MaxVal ~= nil and MinVal < MaxVal then
  15. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  16. else
  17. SpellDamage(Target, DmgType, MinVal)
  18. end
  19. end
  20. function tick(Caster, Target, DoTType, DoTVal, DmgType, MinVal, MaxVal, AttackSpeed)
  21. SpellDamage(Target, DoTType, DoTVal)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. end