Judgment.lua 547 B

12345678910111213141516171819
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/Judgment.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.05 05:12:36
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Interrupts target
  10. Interrupt(Caster, Target)
  11. -- Inflicts 9 - 14 divine damage on target
  12. if MaxVal ~= nil and MinVal < MaxVal then
  13. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  14. else
  15. SpellDamage(Target, DmgType, MinVal)
  16. end
  17. end