9
3

EvidenceofFaith.lua 805 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Inquisitor/EvidenceofFaith.lua
  3. Script Author : neatz09
  4. Script Date : 2020.03.02 08:03:10
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Vengeful Faith 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)
  11. AddProc(Target, 15, 100)
  12. SetSpellTriggerCount(9, 1)
  13. Say(Caster, "This spell may need a formula based on level?")
  14. end
  15. function proc(Caster, Target, Type, HealMin, HealMax)
  16. if type == 15 then
  17. SpellHeal("Heal", HealMin, HealMax, Target, 0, 0, "Vengeful Faith")
  18. RemoveTriggerFromSpell()
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end