Impale.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/Impale.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.04.17 04:04:31
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMinVal, DoTMaxVal)
  9. -- Inflicts 35 - 58 piercing 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. -- Inflicts 10 - 16 piercing damage on target instantly and every 4 seconds
  16. if DoTMaxVal ~= nil and DoTMinVal < DoTMaxVal then
  17. SpellDamage(Target, DoTDmgType, math.random(DoTMinVal, DoTMaxVal))
  18. else
  19. SpellDamage(Target, DoTDmgType, DoTMinVal)
  20. end
  21. end
  22. function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMinVal, DoTMaxVal)
  23. -- Inflicts 10 - 16 piercing damage on target instantly and every 4 seconds
  24. if DoTMaxVal ~= nil and DoTMinVal < DoTMaxVal then
  25. SpellDamage(Target, DoTDmgType, math.random(DoTMinVal, DoTMaxVal))
  26. else
  27. SpellDamage(Target, DoTDmgType, DoTMinVal)
  28. end
  29. end