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:
parent
843acb5341
commit
199f1b1b94
1 changed files with 1 additions and 1 deletions
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Reference in a new issue