ThurisDolefulThrust.lua 599 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/ThurisDolefulThrust.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.20 07:11:42
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, HealAmt)
  9. -- Inflicts 6 - 10 melee 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. -- Heals caster for 3
  16. if LastSpellAttackHit() then
  17. SpellHeal("Heal", HealAmt, 0, Caster)
  18. end
  19. end