12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- --[[
- Script Name : Spells/Scout/Predator/Pounce.lua
- Script Author : LordPazuzu
- Script Date : 2023.03.31 04:03:26
- Script Purpose :
- :
- --]]
- --[[ Info from spell_display_effects (remove from script when done)
- *Inflicts 115 - 192 melee damage on targets in Area of Effect
- *You must be in stealth to use this!
- --]]
- function precast(Caster, Target)
- -- You must be sneaking to use this ability.
- if IsStealthed(Caster) then
- return true
- end
- SendMessage(Caster, "You must be sneaking to use this ability.", "yellow")
- return false
- end
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 19
- 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
|