From cdb859ff34919235c172e62de2ef675cccc61a1f Mon Sep 17 00:00:00 2001 From: Cyantime Date: Mon, 27 Nov 2017 14:44:09 -0500 Subject: [PATCH] Mobs can't push objects that they can't pull. --- code/modules/mob/living/living.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index c6fd9b20e9..9c224d0610 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -132,6 +132,10 @@ default behaviour is: src << ("You just [pick("ran", "slammed")] into \the [AM]!") return if (!now_pushing) + if(isobj(AM)) + var/obj/I = AM + if(!can_pull_size || can_pull_size < I.w_class) + return now_pushing = 1 var/t = get_dir(src, AM)