fixes mobs with clients trying to dodge while moving (#22324)

* fixes mobs with clients trying to dodge while moving

* Update code/modules/mob/living/simple_animal/hostile/hostile.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/modules/mob/living/simple_animal/hostile/hostile.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
GDN
2023-09-13 12:01:29 -05:00
committed by GitHub
parent f698eacaef
commit 4bb83f8bf0
@@ -417,7 +417,7 @@
return iswallturf(T) || ismineralturf(T)
/mob/living/simple_animal/hostile/Move(atom/newloc, dir , step_x , step_y)
if(dodging && approaching_target && prob(dodge_prob) && moving_diagonally == 0 && isturf(loc) && isturf(newloc))
if(!client && dodging && approaching_target && prob(dodge_prob) && !moving_diagonally && isturf(loc) && isturf(newloc))
return dodge(newloc, dir)
else
return ..()