9
3

Ruin.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/Ruin.lua
  3. Script Author : John Adams
  4. Script Date : 2013.12.08 02:12:50
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMin, DoTMax, SkillAmt)
  9. --Inflicts 23 - 39 slashing 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. --Decreases Piercing of target by 1.5
  16. --Decreases Slashing and Crushing of target by 1.5
  17. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  18. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  19. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  20. end
  21. function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMin, DoTMax, SkillAmt)
  22. --Inflicts 10 - 12 slashing damage on target every 5 seconds
  23. if DoTMax ~= nil and DoTMin < DoTMax then
  24. SpellDamage(Target, DoTType, math.random(DoTMin, DoTMax))
  25. else
  26. SpellDamage(Target, DoTType, DoTMin)
  27. end
  28. end
  29. function remove(Caster, Target)
  30. RemoveSkillBonus(Target)
  31. end