Gouge.lua 761 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Gouge.lua
  3. Script Author : Zcoretri
  4. Script Date : 14.March.2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Must be in front of or flanking
  10. if IsFlanking(Caster, Target) then
  11. return true
  12. else
  13. SendMessage(Caster, "You must be flanking your target to use this ability!", "yellow")
  14. return false
  15. end
  16. end
  17. function cast(Caster, Target, DmgType, MinDmg, MaxDmg, Parry)
  18. -- Decreases Parry of target by 8.1
  19. -- Inflicts 98 - 163 melee damage on target
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. AddSkillBonus(Target, 540022425, Parry)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSkillBonue(Target)
  25. end