MalevolentDiatribe.lua 731 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Inquisitor/MalevolentDiatribe.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.13 09:03:40
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. SetSpellTriggerCount(9, 1)
  10. AddProc(Target, 2, 100)
  11. end
  12. function proc(Caster, Target, Type, MinHeal, MaxHeal)
  13. -- When any damage is received this spell will cast Atoning Faith on target, which can be triggered up to 9 times across all targets.
  14. -- Heals target for 44 - 54
  15. if Type == 2 then
  16. SpellHeal("Heal", MinHeal, MaxHeal, Caster)
  17. RemoveTriggerFromSpell(1)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. RemoveProc(Target)
  22. end