FocusedIntervention.lua 757 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/FocusedIntervention.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.27 12:10:38
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Benefaction on target.
  9. -- Heals target for 790 - 965
  10. -- Grants a total of 8 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, "Benefaction")
  18. RemoveTriggerFromSpell()
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end