Penance.lua 808 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Inquisitor/Penance.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.13 08:03:08
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- Grants a total of 5 triggers of the spell.
  10. SetSpellTriggerCount(5, 1)
  11. -- When any damage is received this spell will cast Vengeful Faith on target.
  12. AddProc(Target, 2, 100)
  13. end
  14. function proc(Caster, Target, Type, MinHeal, MaxHeal)
  15. -- When any damage is received this spell will cast Vengeful Faith on target.
  16. if Type == 2 then
  17. -- Heals target for 38 - 46
  18. SpellHeal("Heal", MinHeal, MaxHeal, Caster)
  19. RemoveTriggerFromSpell(1)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end