BumRush.lua 635 B

1234567891011121314151617181920212223
  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