Skip to content

Commit

Permalink
npc: allied NPCs aren't shopkeepers (#62146)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei8l authored Nov 10, 2022
1 parent 46c3454 commit f63f534
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 @@ -2187,7 +2187,7 @@ void npc::shop_restock()

bool npc::is_shopkeeper() const
{
return !myclass->get_shopkeeper_items().empty();
return !is_player_ally() && !myclass->get_shopkeeper_items().empty();
}

int npc::minimum_item_value() const
Expand Down

0 comments on commit f63f534

Please sign in to comment.