GutKick.lua 554 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/GutKick.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.22 07:11:41
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DDType, MinDmg, MaxDmg)
  9. -- Inflicts 13 - 22 crushing damage on target
  10. if MaxDmg ~= nil and MinDmg < MaxDmg then
  11. SpellDamage(Target, DDType, math.random(MinDmg, MaxDmg))
  12. else
  13. SpellDamage(Target, DDType, MinDmg)
  14. end
  15. -- Interrupts target
  16. if target ~= nil then
  17. Interrupt(Caster, Target)
  18. end
  19. end