1234567891011121314151617181920212223242526272829303132333435 |
- --[[
- Script Name : Spells/Fighter/Warrior/Guardian/Ruin.lua
- Script Author : John Adams
- Script Date : 2013.12.08 02:12:50
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMin, DoTMax, SkillAmt)
- --Inflicts 23 - 39 slashing damage on target
- if MaxVal ~= nil and MinVal < MaxVal then
- SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
- else
- SpellDamage(Target, DmgType, MinVal)
- end
- --Decreases Piercing of target by 1.5
- --Decreases Slashing and Crushing of target by 1.5
- AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
- AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
- AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
- end
- function tick(Caster, Target, DmgType, MinVal, MaxVal, DoTType, DoTMin, DoTMax, SkillAmt)
- --Inflicts 10 - 12 slashing damage on target every 5 seconds
- if DoTMax ~= nil and DoTMin < DoTMax then
- SpellDamage(Target, DoTType, math.random(DoTMin, DoTMax))
- else
- SpellDamage(Target, DoTType, DoTMin)
- end
- end
- function remove(Caster, Target)
- RemoveSkillBonus(Target)
- end
|