9
3

DarkInfestation.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/DarkInfestation.lua
  3. Script Author : neatz09
  4. Script Date : 2020.05.13 05:05:39
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 183 - 224 poison damage on target instantly and every 4 seconds
  9. -- When damaged with a spell this spell has a 35% chance to cast Dark Broodlings on target. Lasts for 6.0 seconds.
  10. -- Summons 3 limited pets to aid the caster
  11. -- Grants a total of 1 trigger of the spell.
  12. -- Grants a total of 1 trigger of the spell.
  13. function cast(Caster, Target, DmgType, MinVal, MaxVal, Chance, PetID)
  14. Say(Caster, "Proc needs to trigger ONLY with Nox spells. Not yet implemented.")
  15. SpellDamage(Target, DmgType, MinVal, MaxVal)
  16. AddProc(Target, 5, Chance)
  17. SetSpellTriggerCount(1,0)
  18. end
  19. function tick(Caster, Target, DmgType, MinVal, MaxVal, Chance, PetID)
  20. SpellDamage(Target, DmgType, MinVal, MaxVal)
  21. end
  22. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, Chance, PetID)
  23. CastSpell(Target)
  24. RemoveTriggerFromSpell()
  25. end
  26. function remove(Caster, Target)
  27. RemoveProc(Target)
  28. end