From f1ec14fcb40a9348a4c7a10e84a1dac85e0bc8fb Mon Sep 17 00:00:00 2001 From: phelieros Date: Sun, 22 Sep 2024 06:16:22 +0700 Subject: [PATCH] Backport #76532 Fix item auto pickup condition for npc (#76543) --- src/npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npc.cpp b/src/npc.cpp index 4428a4be629c5..53bc517dcab90 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -2308,7 +2308,7 @@ bool npc::is_stationary( bool include_guards ) const if( include_guards && is_guarding() ) { return true; } - return mission == NPC_MISSION_SHELTER || mission == NPC_MISSION_SHOPKEEP || + return ( !is_following() && mission == NPC_MISSION_SHELTER ) || mission == NPC_MISSION_SHOPKEEP || has_effect( effect_infection ); }