Core/GameObject: Force compatibility mode for stupid ridiculous junk legacy hack gameobjects

Port From (https://github.com/TrinityCore/TrinityCore/commit/65b8dafb537dc41f9b46f44fa03c6466915fd119)
This commit is contained in:
hondacrx
2021-08-09 09:50:32 -04:00
parent 2b2698ea3c
commit f2ff234456
@@ -1075,6 +1075,12 @@ namespace Game.Entities
}
else
{
if (!m_respawnCompatibilityMode)
{
Log.outWarn(LogFilter.Sql, $"GameObject {entry} (SpawnID {spawnId}) is not spawned by default, but tries to use a non-hack spawn system. This will not work. Defaulting to compatibility mode.");
m_respawnCompatibilityMode = true;
}
m_spawnedByDefault = false;
m_respawnDelayTime = (uint)-data.spawntimesecs;
m_respawnTime = 0;