SoothingSermon.lua 855 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Priest/Cleric/SoothingSermon.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.10 10:11:56
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Vitae on target, which can be triggered up to 9 times across all targets.
  9. -- Heals target for 40 - 49
  10. function cast(Caster, Target, HealMin, HealMax, Triggers)
  11. AddProc(Target, 15, 100, nil, 1)
  12. SetSpellTriggerCount(Triggers, 1)
  13. end
  14. function Proc(Caster, Target, Type, HealMin, HealMax, Triggers)
  15. Spell = GetSpell(5455, GetSpellTier())
  16. if Type == 15 then
  17. SetSpellDataIndex(Spell, 0, HealMin)
  18. SetSpellDataIndex(Spell, 1, HealMax)
  19. CastCustomSpell(Spell, Caster, Target)
  20. RemoveTriggerFromSpell()
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveProc(Target)
  25. end