Fix other group members not respawning properly in Lairs

This commit is contained in:
dongresource 2020-12-24 05:22:46 +01:00
parent e02ef55844
commit 44fbb8e81f
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}
}