Core/Creature: Log an error for Creatures spawned with temporary auras

Port From (https://github.com/TrinityCore/TrinityCore/commit/73e7719dbf924aa2f7f2e9a7d7ec3ca04595f988)
This commit is contained in:
hondacrx
2022-01-05 18:01:35 -05:00
parent bf78002ab3
commit bbf55294b0
+12
View File
@@ -2045,6 +2045,12 @@ namespace Game
continue;
}
if (AdditionalSpellInfo.GetDuration() > 0)
{
Log.outError(LogFilter.Sql, $"Creature (Entry: {entry}) has temporary aura (spell {spellId}) in `auras` field in `creature_template_addon`.");
continue;
}
creatureAddon.auras[i++] = spellId;
}
@@ -2159,6 +2165,12 @@ namespace Game
continue;
}
if (AdditionalSpellInfo.GetDuration() > 0)
{
Log.outError(LogFilter.Sql, $"Creature (GUID: {guid}) has temporary aura (spell {spellId}) in `auras` field in `creature_addon`.");
continue;
}
creatureAddon.auras[i++] = spellId;
}