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)
(cherry picked from commit 15598723810f76a56b1ea5f3198b482dc0c19d65) Signed-off-by: luis <[email protected]>
This commit is contained in:
@@ -628,7 +628,11 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPackets::AreaTrigger::AreaTrigge
|
||||
TC_LOG_DEBUG("maps", "MAP: Player '{}' has corpse in instance {} and can enter.", player->GetName(), at->Loc.GetMapId());
|
||||
}
|
||||
else
|
||||
{
|
||||
TC_LOG_DEBUG("maps", "Map::CanPlayerEnter - player '{}' is dead but does not have a corpse!", player->GetName());
|
||||
SendPacket(WorldPackets::AreaTrigger::AreaTriggerNoCorpse().Write());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (TransferAbortParams denyReason = Map::PlayerCannotEnter(at->Loc.GetMapId(), player))
|
||||
|
||||
Reference in New Issue
Block a user