Core/Conditions: Allow empty (CONDITION_NONE) conditions with just script attached

Port From (https://github.com/TrinityCore/TrinityCore/commit/47aa69ca32c79dfdab9cd2cdbd64e69c9716e413)
This commit is contained in:
hondacrx
2022-07-25 22:17:46 -04:00
parent 686cfb1b83
commit a3bd0f274a
+1 -1
View File
@@ -565,7 +565,7 @@ namespace Game.Conditions
public bool IsLoaded()
{
return ConditionType > ConditionTypes.None || ReferenceId != 0;
return ConditionType > ConditionTypes.None || ReferenceId != 0 || ScriptId != 0;
}
public uint GetMaxAvailableConditionTargets()