Exiles Reach: diagnostic logs for abandon respawn

Log when the ride abandon is detected, how many undead are tracked, and the
spawnIds being forced to respawn — to pinpoint why the mobs don't come back.
This commit is contained in:
devbox
2026-08-24 15:10:25 +10:00
parent 2317f0fe7d
commit cfe74126f5
@@ -63,10 +63,14 @@ public:
// completed (let them stay mowed down).
if (!rewarded)
{
TC_LOG_ERROR("playerbot.v2", "[ExilesReach] ride abandoned; respawning {} tracked undead", s_mowedDownUndead.size());
if (Map* map = player->GetMap())
for (ObjectGuid::LowType spawnId : s_mowedDownUndead)
{
TC_LOG_ERROR("playerbot.v2", "[ExilesReach] respawn spawnId={}", spawnId);
map->Respawn(SPAWN_TYPE_CREATURE, spawnId);
}
}
s_mowedDownUndead.clear();
}
}