mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 13:33:35 +00:00
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:
parent
e58218cfbc
commit
6b9798595e
@ -292,9 +292,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
||||
const auto currentZone = Game::zoneManager->GetZone()->GetZoneID().GetMapID();
|
||||
LWOMAPID newZone = 0;
|
||||
|
||||
if (currentZone == 1001) {
|
||||
newZone = 1100; // Send to AG if we're in a Return to Venture Explorer instance
|
||||
} else if (currentZone % 100 == 0) {
|
||||
if (currentZone == 1001 || currentZone % 100 == 0) {
|
||||
ChatPackets::SendSystemMessage(sysAddr, u"You are not in an instanced zone.");
|
||||
return;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user