Immolation.lua 866 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/Immolation.lua
  3. Script Author : Zcoretri
  4. Script Date : 2013.13.12 17:43:18
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DotMinVal, DotMaxVal)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DmgType, MinVal)
  13. end
  14. end
  15. function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DotMinVal, DotMaxVal)
  16. if DotMaxVal ~= nil and DotMinVal < DotMaxVal then
  17. SpellDamage(Target, DoTType, math.random(DotMinVal, DotMaxVal))
  18. else
  19. SpellDamage(Target, DoTType, DotMinVal)
  20. end
  21. end
  22. function remove(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DotMinVal, DotMaxVal)
  23. end