1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- --[[
- Script Name : Spells/Mage/Sorcerer/FreezingWhorl.lua
- Script Author : neatz09
- Script Date : 2020.11.05 02:11:50
- Script Purpose :
- :
- --]]
- -- Inflicts 5 - 10 cold damage on target instantly and every 4 seconds
- -- Decreases Mitigation of target vs elemental damage by 133
- function cast(Caster, Target, DmgType, MinVal, MaxVal, Mit, SpellLevel)
-
- Level = GetLevel(Caster)
- Mastery = SpellLevel + 10
- StatBonus = GetInt(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
- MinDmg = math.floor(DmgBonus) * 2 + MinVal
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- --AddSpellBonus(Target, 201, Mit)
- end
- function tick(Caster, Target, DmgType, MinVal, MaxVal, Mit, SpellLevel)
- Level = GetLevel(Caster)
- Mastery = SpellLevel + 10
- StatBonus = GetInt(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
- MinDmg = math.floor(DmgBonus) * 2 + MinVal
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- end
- function remove(Caster, Target)
- RemoveSpellBonus(Target)
- end
|