VitalIntercession.lua 749 B

123456789101112131415161718192021222324252627
  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, Type, HealLow, HealHigh)
  16. if Type == 15 then
  17. SpellHeal(Spawn, "heal", min, max, Target, 0, 0, "Supplicant's Prayer")
  18. RemoveTriggerFromSpell()
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end