Mangle.lua 725 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Mangle.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 03:01:17
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, SkillAmt)
  9. -- Inflicts 21 - 35 slashing damage on target
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. -- Decreases Slashing, Crushing and Piercing of target by 1.5
  12. if LastSpellAttackHit() then
  13. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  14. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  16. end
  17. end
  18. function remove(Caster, Target)
  19. RemoveSkillBonus(Target)
  20. end