Debilitate.lua 688 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Debilitate.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.17 11:10:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Must be flanking or behind
  10. if not IsFlanking(Caster, Target) then
  11. SendMessage(Caster, "Must be flanking or behind", "yellow")
  12. return false
  13. end
  14. return true
  15. end
  16. function cast(Caster, Target, DmgType, MinVal, MaxVal, Mit)
  17. -- Inflicts 561 - 935 melee damage on target
  18. SpellDamage(Target, DmgType, MinVal, MaxVal)
  19. -- Decreases Mitigation of target vs physical damage by 2160
  20. AddSpellBonus(Target, 200, Mit)
  21. end