9
3

FaithStrike.lua 515 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/FaithStrike.lua
  3. Script Author : Dello
  4. Script Date : 19/07/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DDType, MinDmg, MaxDmg, HealAmt)
  9. if MaxDmg ~= nil and MinDmg < MaxDmg then
  10. dmgAmount = math.random(MinDmg, MaxDmg)
  11. SpellDamage(Target, DDType, dmgAmount)
  12. else
  13. SpellDamage(Target, DDType, MinDmg)
  14. end
  15. if HealAmt ~= nil then
  16. SpellHeal("Heal", HealAmt, HealAmt, Caster)
  17. end
  18. end