Core/Maps: Do not allow entering an instance if the player is not alive and does not have the corpse inside or in inner instance (#30229)

This commit is contained in:
Gildor
2024-09-23 16:02:22 +02:00
committed by GitHub
parent f08cc759f7
commit 1559872381

View File

@@ -180,7 +180,10 @@ Map::EnterState MapManager::PlayerCannotEnter(uint32 mapid, Player* player, bool
TC_LOG_DEBUG("maps", "MAP: Player '{}' has corpse in instance '{}' and can enter.", player->GetName(), mapName);
}
else
{
TC_LOG_DEBUG("maps", "Map::CanPlayerEnter - player '{}' is dead but does not have a corpse!", player->GetName());
return Map::CANNOT_ENTER_CORPSE_IN_DIFFERENT_INSTANCE;
}
}
//Get instance where player's group is bound & its map