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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-17 03:51:43 +02:00
commit 199f1b1b94

View file

@ -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}");