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:
@@ -1075,6 +1075,12 @@ namespace Game.Entities
|
|||||||
}
|
}
|
||||||
else
|
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_spawnedByDefault = false;
|
||||||
m_respawnDelayTime = (uint)-data.spawntimesecs;
|
m_respawnDelayTime = (uint)-data.spawntimesecs;
|
||||||
m_respawnTime = 0;
|
m_respawnTime = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user