Revert "fix(Core): fix chests not despawning when opened in group (#5371)" (#5386)

This reverts commit cd6ee1c644.
This commit is contained in:
Francesco Borzì
2021-04-21 10:32:32 +02:00
committed by GitHub
parent f40ef6de4d
commit 2c5cb29ad4
3 changed files with 0 additions and 12 deletions

View File

@@ -1494,15 +1494,6 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
item->is_blocked = false;
}
{
Loot* loot = roll->getLoot();
if (loot->isLooted() && loot->sourceGameObject != nullptr && loot->sourceGameObject->GetGOInfo()->type == GAMEOBJECT_TYPE_CHEST)
{
// Deactivate chest if the last item was rolled in group
loot->sourceGameObject->SetLootState(GO_JUST_DEACTIVATED);
}
}
RollId.erase(rollI);
delete roll;
}