This commit is contained in:
aozhiwei 2023-03-20 16:24:00 +08:00
parent 6e5218372b
commit 9991af795a

View File

@ -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;