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:
@@ -63,9 +63,13 @@ 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user