12345678910111213141516171819202122232425 |
- --[[
- Script Name : Spells/Fighter/Warrior/Mangle.lua
- Script Author : Dello
- Script Date : 2014.07.11 02:07:39
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal, SkillAmt)
- AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
- AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
- AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
- if MaxVal ~= nil and MinVal < MaxVal then
- SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
- else
- SpellDamage(Target, DmgType, MinVal)
- end
- end
- function remove(Caster, Target)
- RemoveSkillBonus(Target)
- end
|