9
3

Backstab.lua 693 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Backstab.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.10 11:11:16
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 46 - 78 melee damage on target
  9. -- Decreases AGI of target by 7.2
  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, Agi)
  19. SpellDamage(Target, DmgType, MinVal, MaxVal)
  20. AddSpellBonus(Target, 2, Agi)
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. end