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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user