ShadowCoil.lua 681 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/ShadowCoil.lua
  3. Script Author : Dello
  4. Script Date : 17/07/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  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, DoTMin, DoTMax)
  16. if DoTMax ~= nil and DoTMin < DoTMax then
  17. SpellDamage(Target, DoTType, math.random(DoTMin, DoTMax))
  18. else
  19. SpellDamage(Target, DoTType, DoTMin)
  20. end
  21. end