9
3

VitalIntercession.lua 669 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/VitalIntercession.lua
  3. Script Author : theFoof
  4. Script Date : 2014.3.9
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, HealLow, HealHigh, Triggers)
  9. -- When any damage is received this spell will cast Supplicant's Prayer on target.
  10. -- Heals target for X - Y
  11. -- Grants a total of 5 triggers of the spell.
  12. AddProc(Target, 15, 100)
  13. SetSpellTriggerCount(Triggers, 1)
  14. end
  15. function proc(Caster, Target, ProcType, HealLow, HealHigh)
  16. SpellHeal("Heal", HealLow, HealHigh)
  17. RemoveTriggerFromSpell()
  18. end
  19. function remove(Caster, Target)
  20. RemoveProc(Target)
  21. end