fix: Fixes divide by zero in poison spell (#883)

This commit is contained in:
Kamron Batman 2021-12-09 11:57:55 -08:00 committed by GitHub
parent 16f65e59c6
commit aba3473030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ namespace Server.Spells.Third
{
if (Caster.InRange(m, 2))
{
level = (Caster.Skills.Magery.Fixed + Caster.Skills.Poisoning.Fixed) / 2 switch
level = ((Caster.Skills.Magery.Fixed + Caster.Skills.Poisoning.Fixed) / 2) switch
{
>= 1000 => 3,
> 850 => 2,