diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 863c9f67..a61e220f 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2931,6 +2931,17 @@ void Human::LootInteraction(Loot* entity) #endif return; } + if (entity->pickup_flag != 0) { + if (entity->pickup_flag == 1) { + if (!(entity->master.Get() && entity->master.Get() == this)) { + return; + } + } else if (entity->pickup_flag == 2) { + if (!(entity->master.Get() && entity->master.Get()->team_id == team_id)) { + return; + } + } + } AddItemDTO dto; dto.uniid = entity->GetUniId(); dto.item_id = entity->item_id;