From 47aa69ca32c79dfdab9cd2cdbd64e69c9716e413 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 25 Jul 2022 20:59:46 +0200 Subject: Core/Conditions: Allow empty (CONDITION_NONE) conditions with just script attached --- src/server/game/Conditions/ConditionMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Conditions/ConditionMgr.h b/src/server/game/Conditions/ConditionMgr.h index a1047e57428..3b0ba3bb7f0 100644 --- a/src/server/game/Conditions/ConditionMgr.h +++ b/src/server/game/Conditions/ConditionMgr.h @@ -256,7 +256,7 @@ struct TC_GAME_API Condition bool Meets(ConditionSourceInfo& sourceInfo) const; uint32 GetSearcherTypeMaskForCondition() const; - bool isLoaded() const { return ConditionType > CONDITION_NONE || ReferenceId; } + bool isLoaded() const { return ConditionType > CONDITION_NONE || ReferenceId || ScriptId; } uint32 GetMaxAvailableConditionTargets() const; std::string ToString(bool ext = false) const; /// For logging purpose -- cgit v1.2.3