9
3

Gouge.lua 852 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Gouge.lua
  3. Script Author : Zcoretri
  4. Script Date : 14.March.2014
  5. Script Purpose : Added ifLastHit 5/13/20
  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. if LastSpellAttackHit() then
  22. AddSkillBonus(Target, 540022425, Parry)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveSkillBonue(Target)
  27. end