From 44fbb8e81f529e9e886eee8e5372ad7c677247e5 Mon Sep 17 00:00:00 2001 From: dongresource Date: Thu, 24 Dec 2020 05:22:46 +0100 Subject: [PATCH] Fix other group members not respawning properly in Lairs --- src/NPCManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NPCManager.cpp b/src/NPCManager.cpp index e49d93a..7d368f4 100644 --- a/src/NPCManager.cpp +++ b/src/NPCManager.cpp @@ -559,6 +559,12 @@ void NPCManager::handleWarp(CNSocket* sock, int32_t warpId) { if (otherPlr == nullptr || sockTo == nullptr) continue; + // save Lair entrance coords for everyone else as well + otherPlr->recallX = Warps[warpId].x; + otherPlr->recallY = Warps[warpId].y; + otherPlr->recallZ = Warps[warpId].z + RESURRECT_HEIGHT; + otherPlr->recallInstance = instanceID; + PlayerManager::sendPlayerTo(sockTo, Warps[warpId].x, Warps[warpId].y, Warps[warpId].z, instanceID); } }