9
3

Radiance.lua 894 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Radiance.lua
  3. Script Author : LordPazuzu
  4. Script Date : 12/2/2022
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Vitae on target.
  9. -- Heals target based on level.
  10. -- Grants a total of 5 triggers of the spell.
  11. function cast(Caster, Target)
  12. AddProc(Target, 15, 100)
  13. SetSpellTriggerCount(5, 1)
  14. end
  15. function proc(Caster, Target, Type, HeaMin, HealMax, Triggers)
  16. local level= GetLevel(Caster)
  17. local HealMin = level * 3.825
  18. local HealMax = HealMin * 1.23
  19. if Type == 15 then
  20. Spell = GetSpell(5455, GetSpellTier())
  21. SetSpellDataIndex(Spell, 0, HealMin)
  22. SetSpellDataIndex(Spell, 1, HealMax)
  23. CastCustomSpell(Spell, Caster, Target)
  24. RemoveTriggerFromSpell()
  25. end
  26. end
  27. function remove(Caster, Target)
  28. RemoveProc(Target)
  29. end