9
3

PeacefulLink.lua 806 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/PeacefulLink.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.22 05:10:31
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When damaged with a melee weapon this spell has a 33% chance to cast Linked Pain on target's attacker.
  9. -- Decreases threat priority of target by 1 position
  10. -- Decreases Hate Gain of target by 10.7%
  11. function cast(Caster, Target, Chance, Hate)
  12. AddProc(Target, 16, Chance)
  13. Say(Caster, "Threat Positions not implemented.")
  14. end
  15. function proc(Caster, Target, Type, Hate)
  16. Spell = GetSpell(5003, GetSpellTier())
  17. if Type == 16 then
  18. SetSpellDataIndex(Spell, 0, Hate)
  19. CastCustomSpell(Spell, Caster, Target)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end