fix: leavezone command (#1345)

Players do not need access to leave Return to the Venture Explorer (rttve) via a slash command.  They can leave through the usual zone method.

Tested that you cannot leavezone in rttve
This commit is contained in:
David Markowitz 2023-12-23 09:28:32 -08:00 committed by GitHub
parent e58218cfbc
commit 6b9798595e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,9 +292,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
const auto currentZone = Game::zoneManager->GetZone()->GetZoneID().GetMapID(); const auto currentZone = Game::zoneManager->GetZone()->GetZoneID().GetMapID();
LWOMAPID newZone = 0; LWOMAPID newZone = 0;
if (currentZone == 1001) { if (currentZone == 1001 || currentZone % 100 == 0) {
newZone = 1100; // Send to AG if we're in a Return to Venture Explorer instance
} else if (currentZone % 100 == 0) {
ChatPackets::SendSystemMessage(sysAddr, u"You are not in an instanced zone."); ChatPackets::SendSystemMessage(sysAddr, u"You are not in an instanced zone.");
return; return;
} else { } else {