HolyIntercession.lua 707 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/HolyIntercession.lua
  3. Script Author : Zcoretri
  4. Script Date : 2014.03.13
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, HealLow, HealHigh, Triggers)
  9. -- When any damage is received this spell will cast Divine Prayer on target, which can be triggered up to 9 times across all targets.
  10. -- Heals target for 44 - 54
  11. AddProc(Target, 15, 100, 0, 1)
  12. SetSpellTriggerCount(Triggers, 1)
  13. end
  14. function proc(Caster, Target, ProcType, HealLow, HealHigh)
  15. SpellHeal("Heal", HealLow, HealHigh)
  16. RemoveTriggerFromSpell()
  17. end
  18. function remove(Caster, Target)
  19. RemoveProc(Target)
  20. end