fix: adapt the transfers of a match, a rescue and a property reload to a failed transfer

The chat server passes the master server's answer for a match on to
the world servers as it is, and a world server tells each player of
the match that the map change failed. A player moved from the
dashboard and the players of a property that loads again are told the
same, and their characters stay in the zone they are in.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 16:12:39 -06:00
parent ebcfd54915
commit d5723696f4
3 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#include "DashboardActions.h"
#include "WorldPackets.h"
#include "master/PlayerAction.h"
#include "Game.h"
@@ -144,6 +145,7 @@ namespace {
[objectId, spawnPoint](bool mythranShift, uint32_t zoneID, uint32_t zoneInstance, uint32_t zoneClone, std::string serverIP, uint16_t serverPort) {
auto* entity = Game::entityManager->GetEntity(objectId);
if (!entity || !entity->GetCharacter()) return;
if (WorldPackets::SendIfTransferFailed(entity->GetSystemAddress(), serverIP, serverPort)) return;
auto* character = entity->GetCharacter();
if (auto* characterComponent = entity->GetComponent<CharacterComponent>()) {