diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-07-25 20:59:46 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-07-25 20:59:46 +0200 |
commit | 47aa69ca32c79dfdab9cd2cdbd64e69c9716e413 (patch) | |
tree | 6307e7149224fcf098fe784a0bd3baee2b0412fc /src | |
parent | 3f0266624dd711afd19c8002ac5474e8c834a366 (diff) |
Core/Conditions: Allow empty (CONDITION_NONE) conditions with just script attached
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |