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:
Gildor
2026-06-01 20:01:16 -03:00
committed by luis
parent c26b900e01
commit 11b1323ca6
+4
View File
@@ -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))