Skip to content

Commit

Permalink
Backport #76532 Fix item auto pickup condition for npc (#76543)
Browse files Browse the repository at this point in the history
  • Loading branch information
phelieros authored Sep 21, 2024
1 parent e966010 commit f1ec14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit f1ec14f

Please sign in to comment.