From 5a96035563d76a8fa6fd3ab470dae4a026a269ed Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 17 Oct 2026 01:13:28 +0200 Subject: [PATCH] ConsumableAiTests: the refit waits for the new Minion to reach combat Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ConsumableAiTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs b/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs index 9189d2cdc..4fd7ebbbe 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs @@ -353,9 +353,9 @@ public sealed class ConsumableAiTests : IDisposable s.Agent.EntityInfoGathered[s.Prey] = 1f; if (!s.Agent.VisibleEnemies.Contains(s.Prey)) s.Agent.VisibleEnemies.Add(s.Prey); s.Place(30f, 0f); + // The new Minion walks root, patrol, orbit, combat; the tick after it enters combat samples the optimum. + for (var i = 0; i < 8 && !(s.State is CombatState); i++) s.Zone.Update(.05f); s.Zone.Update(.05f); - s.Zone.Update(.05f); - s.Zone.Update(.05f); // the new Minion walks root, patrol, combat } float Optimum() => (float) typeof(CombatState).GetField("_optimumRange", Private).GetValue(s.State);