From da2dad46e8f43979e5b610afff4f3d7dc827dc65 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 26 May 2021 16:49:24 +0200 Subject: [PATCH] [MIRROR] Fixes monkeys trying to pickpocket grass (#5964) * Fixes monkeys trying to pickpocket grass (#59300) * Fixes monkeys trying to pickpocket grass Co-authored-by: Emmett Gaines --- code/datums/ai/monkey/monkey_behaviors.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/ai/monkey/monkey_behaviors.dm b/code/datums/ai/monkey/monkey_behaviors.dm index d01e3317c18..3d0f6d04eac 100644 --- a/code/datums/ai/monkey/monkey_behaviors.dm +++ b/code/datums/ai/monkey/monkey_behaviors.dm @@ -80,6 +80,10 @@ var/mob/living/victim = target.loc + if(!istype(victim)) + finish_action(controller, FALSE) + return + var/mob/living/living_pawn = controller.pawn victim.visible_message("[living_pawn] starts trying to take [target] from [victim]!", "[living_pawn] tries to take [target]!")