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:
jackpoz
2019-12-15 19:59:39 +01:00
committed by Shauren
parent 865954767f
commit 73e7719dbf

View File

@@ -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;
}