123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- --[[
- Script Name : Spells/Traditions/Thrash.lua
- Script Author : LordPazuzu
- Script Date : 2023.08.29 11:08:40
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 1
- Mastery = SpellLevel + 50
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = MaxVal + math.floor(DmgBonus)
- MinDmg = MinVal + math.floor(DmgBonus)
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- AddControlEffect(Target, 2)
- end
- function tick(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 1
- Mastery = SpellLevel + 50
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = MaxVal + math.floor(DmgBonus)
- MinDmg = MinVal + math.floor(DmgBonus)
- if IsPlayer(Target) and GetClientVersion(Target) <= 526 then
- SpawnSet(Target,"visual_state",2790)
- else
- SpawnSet(Target,"visual_state",2790)
- end
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- end
- function remove(Caster, Target)
- RemoveControlEffect(Target, 2)
- SpawnSet(Target,"visual_state",35558)
- end
|