9
3

Backstab.lua 829 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Backstab.lua
  3. Script Purpose : Brigand positional attack
  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, DoTDmgType, DoTDmg)
  17. -- Inflicts 9 - 16 melee damage on target
  18. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  19. end
  20. function tick(Caster, Target, DmgType, MinDmg, MaxDmg, DoTDmgType, DoTDmg)
  21. SpellDamage(Target, DoTDmgType, DoTDmg)
  22. end
  23. function remove(Caster, Target, DmgType, MinDmg, MaxDmg, DoTDmgType, DoTDmg)
  24. end