HolySalvation.lua 913 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/HolySalvation.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.27 12:10:03
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On death this spell will cast Salvation on target. Lasts for 36.0 seconds.
  9. -- Heals target for 512
  10. -- Increases Mitigation of target vs physical damage by 369
  11. -- Grants a total of 1 trigger of the spell.
  12. function cast(Caster, Target, HealAmt, MitAmt, Triggers)
  13. AddProc(Target, 13, 100)
  14. SetSpellTriggerCount(Triggers, 1)
  15. end
  16. function proc(Caster, Target, Type, HealAmt, MitAmt, Triggers)
  17. if Type == 13 then
  18. Spell = GetSpell(5448, GetSpellTier())
  19. SetSpellDataIndex(Spell, 0, HealAmt)
  20. SetSpellDataIndex(Spell, 1, MitAmt)
  21. CastCustomSpell(Spell, Caster, Target)
  22. RemoveTriggerFromSpell()
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveProc(Target)
  27. end