9
3

Ambush.lua 616 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Scout/Ambush.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.03 03:11:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 12 - 20 melee damage on target
  9. -- You must be sneaking to use this ability.
  10. function precast(Caster,Target)
  11. -- You must be sneaking to use this ability.
  12. if not IsStealthed(Caster) then
  13. SendMessage(Caster, "You must be sneaking to use this ability.", "yellow")
  14. return false
  15. end
  16. end
  17. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  18. SpellDamage(Target, DmgType, MinVal, MaxVal)
  19. end