SneakAttack.lua 550 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Scout/SneakAttack.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.06 07:11:46
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 14 - 24 melee damage on target
  9. -- Must be flanking or behind
  10. function precast(Caster,Target)
  11. if not IsFlanking(Target, Caster) then
  12. SendMessage(Caster, "Must be flanking or behind", "yellow")
  13. return false
  14. end
  15. return true
  16. end
  17. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  18. SpellDamage(Target, DmgType, MinVal, MaxVal)
  19. end