MarkofPawns.lua 876 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Priest/Cleric/MarkofPawns.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.10 10:11:52
  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, Healz, Chance)
  12. AddSpellBonus(Target, 203, Mit)
  13. AddProc(Target, 16, Chance)
  14. end
  15. function proc(Caster, Target, Type, Mit, Healz, Chance)
  16. Spell = GetSpell(5449, GetSpellTier())
  17. if Type == 16 then
  18. SetSpellDataIndex(Spell, 0, Healz)
  19. CastCustomSpell(Spell, Caster, Target)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. RemoveProc(Target)
  25. end