9
3

Mangle.lua 711 B

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