1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- --[[
- Script Name : Spells/Scout/Predator/Impale.lua
- Script Author : LordPazuzu
- Script Date : 3/29/2023
- Script Purpose :
- :
- --]]
- -- Info from spell_display_effects (remove from script when done)
- -- Inflicts 19 - 33 piercing damage on target
- -- Inflicts 5 - 9 piercing damage on target instantly and every 4 seconds
- -- If facing target
- function cast(Caster, Target, DmgType, MinVal, MaxVal, TickType, TickMin, TickMax)
- Say(Caster, "Facing Target not implemented")
- Level = GetLevel(Caster)
- SpellLevel = 13
- Mastery = SpellLevel + 10
- StatBonus = GetStr(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 + MaxVal
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- end
- function tick(Caster, Target, DmgType, MinVal, MaxVal, TickType, TickMin, TickMax)
- Level = GetLevel(Caster)
- SpellLevel = 13
- Mastery = SpellLevel + 10
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- MaxTick = math.floor(DmgBonus) * 2 + TickMax
- MinTick = math.floor(DmgBonus) * 2 + TickMin
-
- SpellDamage(Target, TickType, MinTick, MaxTick)
- end
|