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:
parent
d927ce6fac
commit
09df444187
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue