9
3

Gouge.lua 820 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 : Added ifLastHit 5/13/20
  6. :
  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, Parry)
  17. -- Decreases Parry of target by 8.1
  18. -- Inflicts 98 - 163 melee damage on target
  19. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  20. if LastSpellAttackHit() then
  21. AddSkillBonus(Target, 540022425, Parry)
  22. end
  23. end
  24. function remove(Caster, Target)
  25. RemoveSkillBonue(Target)
  26. end