[Fix] Refactor project
This commit is contained in:
@@ -56,14 +56,12 @@ namespace YachtDice.Modifiers.Pipeline
|
||||
var activeSnapshot = _registry.Active;
|
||||
|
||||
// Gather eligible effects
|
||||
for (int i = 0; i < activeSnapshot.Count; i++)
|
||||
foreach (var inst in activeSnapshot)
|
||||
{
|
||||
var inst = activeSnapshot[i];
|
||||
var behaviors = inst.Definition.Behaviors;
|
||||
|
||||
for (int b = 0; b < behaviors.Count; b++)
|
||||
foreach (var behavior in behaviors)
|
||||
{
|
||||
var behavior = behaviors[b];
|
||||
if (behavior == null) continue;
|
||||
if (behavior.Trigger != trigger) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user