Shank.lua 782 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Shank.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.07 02:10:00
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Must be flanking or behind
  10. if not IsFlanking(Target, Caster) then
  11. SendMessage(Caster, "Must be flanking or behind", "yellow")
  12. return false
  13. end
  14. return true
  15. end
  16. function cast(Caster, Target, DmgType, MinVal, MaxVal, DotType, DoTMin, DotMax)
  17. -- Inflicts 70 - 117 melee damage on target
  18. -- Inflicts 51 piercing damage on target instantly and every 4 seconds
  19. SpellDamage(Target, DmgType, MinVal, MaxVal)
  20. SpellDamage(Target, DotType, DoTMin, DotMax)
  21. end
  22. function tick(Caster, Target)
  23. SpellDamage(Target, DotType, DoTMin, DotMax)
  24. end