mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user