From 199f1b1b943e2e42a88c74a4f55d996740dc1526 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 17 Oct 2026 03:51:43 +0200 Subject: [PATCH] ConsumableAiTests: the following agent clears the Ship's VisibleEnemies The previous commit does not build: VisibleEnemies is on the Ship, not the Agent. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ConsumableAiTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs b/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs index 32a45c16b..688e27751 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs @@ -527,7 +527,7 @@ public sealed class ConsumableAiTests : IDisposable { var s = Build(carryVent: true); var agent = s.Zone.Agents.Single(); - agent.VisibleEnemies.Clear(); + s.Agent.VisibleEnemies.Clear(); agent.Task = new FollowTask { Anchor = s.Prey, Standoff = 100 }; for (var i = 0; i < 6 && !(s.State is FollowState); i++) agent.Update(.05f); Assert.True(s.State is FollowState, $"the agent is in {s.State?.GetType().Name}");