Radiance.lua 777 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Radiance.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.27 12:10:22
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When any damage is received this spell will cast Vitae on target.
  9. -- Heals target for 47 - 58
  10. -- Grants a total of 5 triggers of the spell.
  11. function cast(Caster, Target, HealMin, HealMax, Triggers)
  12. AddProc(Target, 15, 100)
  13. SetSpellTriggerCount(Triggers, 1)
  14. Say(Caster, "This spell will need a formula")
  15. end
  16. function proc(Caster, Target, Type, HealMin, HealMax, Triggers)
  17. if Type == 15 then
  18. SpellHeal("Heal", HealMin, HealMax, Target, 0, 0, "Vitae")
  19. RemoveTriggerFromSpell()
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end