DarkPyre.lua 887 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/DarkPyre.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.06 07:03:01
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTDmgType, DoTMinVal, DoTMaxVal)
  9. -- Inflicts 26 - 48 disease damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. end
  16. function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTDmgType, DoTMinVal, DoTMaxVal)
  17. -- Inflicts 16 - 29 disease damage on target every 2 seconds
  18. if DoTMaxVal ~= nil and DoTMinVal < DoTMaxVal then
  19. SpellDamage(Target, DoTDmgType, math.random(DoTMinVal, DoTMaxVal))
  20. else
  21. SpellDamage(Target, DoTDmgType, DoTMinVal)
  22. end
  23. end