In the absence of a Resurrect 'Em in a Lair, respawn at the entrance

This commit is contained in:
2020-12-15 00:22:27 +01:00
parent f1aa2c19ef
commit 442d7853a5
3 changed files with 41 additions and 26 deletions

View File

@@ -502,6 +502,11 @@ void NPCManager::handleWarp(CNSocket* sock, int32_t warpId) {
if (Warps[warpId].limitTaskID != 0 || instanceID == 14) { // 14 is a special case for the Time Lab
instanceID += ((uint64_t)plr->iIDGroup << 32); // upper 32 bits are leader ID
ChunkManager::createInstance(instanceID);
// save Lair entrance coords as a pseudo-Resurrect 'Em
plr->recallX = Warps[warpId].x;
plr->recallY = Warps[warpId].y;
plr->recallZ = Warps[warpId].z;
}
if (plr->iID == plr->iIDGroup && plr->groupCnt == 1)