We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 983d3e6 commit 365f3a0Copy full SHA for 365f3a0
src/MHServerEmu.Games/Entities/ConditionCollection.cs
@@ -109,6 +109,23 @@ public ulong GetConditionIdByRef(PrototypeId conditionRef)
109
return condition.Id;
110
}
111
112
+ public IEnumerable<Condition> IterateConditions(bool skipDisabled)
113
+ {
114
+ if (skipDisabled)
115
116
+ foreach (Condition condition in _currentConditionDict.Values)
117
118
+ if (condition.IsEnabled)
119
+ yield return condition;
120
+ }
121
122
+ else
123
124
125
126
127
128
+
129
public int GetNumberOfStacks(Condition condition)
130
{
131
throw new NotImplementedException();
0 commit comments