Skip to content

Commit

Permalink
fix(Core/Maps): Dead players should not be allowed to enter dungeon i…
Browse files Browse the repository at this point in the history
…f exceeded max number of instances. Thx to @DepTypes (azerothcore#10831)

Fixed azerothcore#10799
  • Loading branch information
UltraNix committed Mar 6, 2022
1 parent d927ce6 commit 09df444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Maps/MapMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Map::EnterState MapMgr::PlayerCannotEnter(uint32 mapid, Player* player, bool log
instaceIdToCheck = save->GetInstanceId();

// instaceIdToCheck can be 0 if save not found - means no bind so the instance is new
if (!player->CheckInstanceCount(instaceIdToCheck) && !player->isDead())
if (!player->CheckInstanceCount(instaceIdToCheck))
{
player->SendTransferAborted(mapid, TRANSFER_ABORT_TOO_MANY_INSTANCES);
return Map::CANNOT_ENTER_TOO_MANY_INSTANCES;
Expand Down

0 comments on commit 09df444

Please sign in to comment.