mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 17:08:23 +01:00
Core/SmartAI: Correct startup log
This commit is contained in:
@@ -1174,8 +1174,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
|
||||
return false;
|
||||
}
|
||||
|
||||
PhaseGroupEntry const* phase = sPhaseGroupStore.LookupEntry(phaseGroup);
|
||||
if (!phase)
|
||||
if (phaseGroup && GetPhasesForGroup(phaseGroup).empty())
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "SmartScript: SMART_ACTION_SET_INGAME_PHASE_GROUP uses invalid phase group id %u for creature %u, skipped", phaseGroup, e.entryOrGuid);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user