9
3

Invocation.lua 532 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Inquisitor/Invocation.lua
  3. Script Author : JohnAdams
  4. Script Date : 2013.11.17 05:11:19
  5. Script Purpose : Inquisitor Direct Damage spell + interrupt
  6. --]]
  7. function cast(Caster, Target, DmgType, MinDmg, MaxDmg)
  8. -- DD component
  9. if MaxDmg ~= nil and MinDmg < MaxDmg then
  10. SpellDamage(Target, DmgType, math.random(MinDmg, MaxDmg))
  11. else
  12. SpellDamage(Target, DmgType, MinDmg)
  13. end
  14. -- Interrupt component
  15. if target ~= nil then
  16. Interrupt(Caster, Target)
  17. end
  18. end