StealthAssault.lua 1018 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/StealthAssault.lua
  3. Script Author : neatz09
  4. Script Date : 2019.09.29 11:09:09
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Inflicts 140 - 234 melee damage on targets in Area of Effect
  10. -- Inflicts 43 piercing damage on targets in Area of Effect instantly and every 2 seconds
  11. -- You must be in stealth or have Bloody Assault.
  12. function precast(Caster, Target)
  13. -- You must be sneaking to use this ability.
  14. if IsStealthed(Caster) then
  15. return true
  16. end
  17. SendMessage(Caster, "You must be sneaking to use this ability.", "yellow")
  18. return false
  19. end
  20. function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTVal)
  21. SpellDamage(Target, DmgType, MinVal, MaxVal)
  22. SpellDamage(Target, DoTType, DoTVal)
  23. end
  24. function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTVal)
  25. SpellDamage(Target, DoTType, DotVal)
  26. end