Skip to content

Commit 1559872

Browse files
authored
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)
1 parent f08cc75 commit 1559872

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/game/Maps/MapManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ Map::EnterState MapManager::PlayerCannotEnter(uint32 mapid, Player* player, bool
180180
TC_LOG_DEBUG("maps", "MAP: Player '{}' has corpse in instance '{}' and can enter.", player->GetName(), mapName);
181181
}
182182
else
183+
{
183184
TC_LOG_DEBUG("maps", "Map::CanPlayerEnter - player '{}' is dead but does not have a corpse!", player->GetName());
185+
return Map::CANNOT_ENTER_CORPSE_IN_DIFFERENT_INSTANCE;
186+
}
184187
}
185188

186189
//Get instance where player's group is bound & its map

0 commit comments

Comments
 (0)