BestowalofVitae.lua 733 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Priest/Cleric/BestowalofVitae.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.27 12:10:59
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Vitae on target.
  9. -- Heals target for 34 - 42
  10. -- Grants a total of 5 triggers of the spell.
  11. function cast(Caster, Target, HealMin, HealMax, Triggers)
  12. AddProc(Target, 15, 100)
  13. SetSpellTriggerCount(Triggers, 1)
  14. end
  15. function proc(Caster, Target, Type, HealMin, HealMax, Triggers)
  16. if Type == 15 then
  17. SpellHeal("Heal", HealMin, HealMax, Target, 0, 0, "Vitae")
  18. RemoveTriggerFromSpell()
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end