NecromanticPact.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Necromancer/NecromanticPact.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.08 01:12:35
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Applies Necromantic Pact to qualifying pets.
  10. -- When damaged this spell has a 25% chance to cast Exposed Noxious on target's attacker. Lasts for 20.0 seconds.
  11. -- Decreases Mitigation of target vs noxious damage by 141
  12. -- On any combat or spell hit this spell may cast Exposed Noxious on target of attack. Lasts for 20.0 seconds. Triggers about 5.0 times per minute.
  13. -- Decreases Mitigation of target vs noxious damage by 141
  14. function cast(Caster, Target)
  15. AddProc(Target, 1, 25)
  16. AddProc(Target, 2, 25)
  17. end
  18. function proc(Caster, Target, Type, mitValue)
  19. if type == 1 or Type == 2 then
  20. AddSpellBonus(Target, 202, mitValue)
  21. AddSpellTimer(20000, "RemoveDebuff")
  22. end
  23. end
  24. function RemoveDebuff(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. end
  27. function remove(Caster, Target)
  28. RemoveProc(Target)
  29. end