mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Core/Maps): Dead players should not be allowed to enter dungeon if exceeded max number of instances. Thx to @DepTypes (#10831)
Fixed #10799
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user