mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Creature: Log an error for Creatures spawned with temporary auras
The errors still need to be addressed.
Close #23225
(cherry picked from commit 54f9456764)
This commit is contained in:
@@ -697,6 +697,12 @@ void ObjectMgr::LoadCreatureTemplateAddons()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AdditionalSpellInfo->GetDuration() > 0)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has temporary aura (spell %u) in `auras` field in `creature_template_addon`.", entry, spellId);
|
||||
continue;
|
||||
}
|
||||
|
||||
creatureAddon.auras[i++] = spellId;
|
||||
}
|
||||
|
||||
@@ -1232,6 +1238,12 @@ void ObjectMgr::LoadCreatureAddons()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AdditionalSpellInfo->GetDuration() > 0)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Creature (GUID: " UI64FMTD ") has temporary aura (spell %u) in `auras` field in `creature_addon`.", guid, spellId);
|
||||
continue;
|
||||
}
|
||||
|
||||
creatureAddon.auras[i++] = spellId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user