MarkofDivinity.lua 889 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/MarkofDivinity.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.10 04:10:10
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Mitigation of target vs arcane damage by 168
  9. -- When damaged with a melee weapon this spell has a 20% chance to cast Mark of Nobility on target's attacker. Lasts for 8.0 seconds.
  10. -- Heals target for 6 instantly and every 2 seconds
  11. function cast(Caster, Target, Mit, Chance, HealAmt)
  12. AddSpellBonus(Target, 203, Mit)
  13. AddProc(Target, 15, 20)
  14. end
  15. function proc(Caster, Target, Type, Mit, Chance, HealAmt)
  16. if Type == 15 then
  17. Spell = GetSpell(5449, GetSpellTier())
  18. SetSpellDataIndex(Spell, 0, HealAmt)
  19. CastCustomSpell(Spell, Caster, Target)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. RemoveProc(Target)
  25. end