9
3

DistractingBlade.lua 615 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Scout/Rogue/DistractingBlade.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.10 11:11:34
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Interrupts target
  9. -- Inflicts 52 - 87 melee damage on target
  10. -- Must be flanking or behind
  11. function precast(Caster, Target)
  12. if not IsFlanking(Target, Caster) then
  13. SendMessage(Caster, "Must be flanking or behind", "yellow")
  14. return false
  15. end
  16. return true
  17. end
  18. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  19. Interrupt(Caster, Target)
  20. SpellDamage(Target, DmgType, MinVal, MaxVal)
  21. end