9
3

GraspofBertoxxulous.lua 869 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/GraspofBertoxxulous.lua
  3. Script Author : Neatz09
  4. Script Date : 9.25.2020
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a combat hit this spell may cast Venomous Runes on target of attack. Lasts for 16.0 seconds. Triggers about 2.0 times per minute.
  9. -- Inflicts 17 - 21 poison damage on target instantly and every 4 seconds
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  11. AddProc(Target, 3, 25)
  12. end
  13. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  14. Spell = GetSpell(5434, GetSpellTier())
  15. if Type == 3 then
  16. SetSpellDataIndex(Spell, 0, DmgType)
  17. SetSpellDataIndex(Spell, 1, MinVal)
  18. SetSpellDataIndex(Spell, 2, MaxVal)
  19. CastCustomSpell(Spell, Caster, Target)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end