BloodyReminder.lua 850 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/BloodyReminder.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 06:03:26
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, TickDmgType, TickDmg, DmgType, MinVal, MaxVal)
  9. -- Inflicts 30 piercing damage on target instantly and every 2.6 seconds
  10. SpellDamage(Target, TickDmgType, TickDmg)
  11. -- Inflicts 11 - 18 melee damage on target
  12. if MaxVal ~= nil and MinVal < MaxVal then
  13. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  14. else
  15. SpellDamage(Target, DmgType, MinVal)
  16. end
  17. end
  18. function tick(Caster, Target, TickDmgType, TickDmg, DmgType, MinVal, MaxVal)
  19. -- Inflicts 30 piercing damage on target instantly and every 2.6 seconds
  20. SpellDamage(Target, TickDmgType, TickDmg)
  21. end