1
This commit is contained in:
parent
6e5218372b
commit
9991af795a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user