9
3

BumRush.lua 660 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/BumRush.lua
  3. Script Purpose : Brigand positional melee attack + interrupt
  4. Script Author : Zcoretri
  5. Script Date : 13.March.2014
  6. Script Notes :
  7. --]]
  8. function precast(Caster, Target)
  9. if IsFlanking(Caster, Target) then
  10. return true
  11. else
  12. SendMessage(Caster, "You must be flanking or behind your target to use this ability!", "yellow")
  13. return false
  14. end
  15. end
  16. function cast(Caster, Target, DmgType, MinDmg, MaxDmg)
  17. -- Interrupt the Target
  18. Interrupt(Caster, Target)
  19. -- Inflicts melee damage on target
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. end