Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,9 @@ std::shared_ptr<Container> Player::getManagedContainer(ObjectCategory_t category
std::shared_ptr<Container> container = nullptr;
if (it != m_managedContainers.end()) {
container = isLootContainer ? it->second.first : it->second.second;
if (!isLootContainer && !container) {
container = it->second.first;
}
}

if (!container && category != OBJECTCATEGORY_DEFAULT) {
Expand Down
7 changes: 1 addition & 6 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3220,7 +3220,7 @@ ReturnValue Game::internalCollectManagedItems(const std::shared_ptr<Player> &pla
}
}

if (!player->quickLootListItemIds.empty()) {
if (isLootContainer && !player->quickLootListItemIds.empty()) {
uint16_t itemId = item->getID();
bool isInList = std::ranges::find(player->quickLootListItemIds, itemId) != player->quickLootListItemIds.end();
if (player->quickLootFilter == QuickLootFilter_t::QUICKLOOTFILTER_ACCEPTEDLOOT && !isInList) {
Expand Down Expand Up @@ -5804,11 +5804,6 @@ void Game::playerSetManagedContainer(uint32_t playerId, ObjectCategory_t categor
return;
}

if (container->getID() == ITEM_GOLD_POUCH && !isLootContainer) {
player->sendTextMessage(MESSAGE_FAILURE, "You can only set the gold pouch as a loot container.");
return;
}

if (container->getHoldingPlayer() != player) {
player->sendCancelMessage("You must be holding the container to set it as a loot container.");
return;
Expand Down
Loading