9
3

GushingWound.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/GushingWound.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.04.14 02:04:57
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, MinVal, MaxVal, DmgType2, MinVal2, MaxVal2)
  9. -- Inflicts 1 - 2 melee 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, DoTType, MinVal, MaxVal, DmgType2, MinVal2, MaxVal2)
  17. -- Inflicts 2 - 3 piercing damage on target instantly and every 4 seconds
  18. if MaxVal ~= nil and MinVal < MaxVal then
  19. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  20. else
  21. SpellDamage(Target, DoTType, MinVal)
  22. end
  23. end
  24. function remove(Caster, Target, DmgType, MinVal, MaxVal, DoTType, MinVal, MaxVal, DmgType2, MinVal2, MaxVal2)
  25. -- Applies Untreated Bleeding on termination.
  26. -- Inflicts 9 - 14 piercing damage on target
  27. ProcDamage(Caster, Target, "Untreated Bleeding", DmgType2, MinVal2, MaxVal2)
  28. end