9
3

Beneficence.lua 821 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/Beneficence.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.27 12:10:05
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Supplicant's Prayer on target, which can be triggered up to 9 times across all targets.
  9. -- Heals target for 176 - 216
  10. function cast(Caster, Target, HealMin, HealMax, Triggers)
  11. AddProc(Target, 15, 100, nil, 1)
  12. SetSpellTriggerCount(Triggers, 1)
  13. Say(Caster, "This spell needs a formula")
  14. end
  15. function proc(Caster, Target, Type, HealMin, HealMax, Triggers)
  16. if Type == 15 then
  17. SpellHeal("Heal", HealMin, HealMax, Target, 0, 0, "Supplicant's Prayer")
  18. RemoveTriggerFromSpell()
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end