EyeGouge.lua 755 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Bruiser/EyeGouge.lua
  3. Script Author : Dello
  4. Script Date : 09/07/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, SkillAmt)
  9. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  10. AddSkillBonus(Target, GetSkillIDByName("Ranged"), SkillAmt)
  11. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  12. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  13. if MaxVal ~= nil and MinVal < MaxVal then
  14. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  15. else
  16. SpellDamage(Target, DmgType, MinVal)
  17. end
  18. end
  19. function remove(Caster, Target)
  20. RemoveSkillBonus(Target)
  21. end