From afc570affdfc1c837561a4a0b0fb61256ceed001 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 16 Oct 2026 22:52:29 +0200 Subject: [PATCH] ConsumableAiTests: the refitted agent senses the prey again Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ConsumableAiTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs b/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs index d6c3adbf6..bbaf2ec7a 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableAiTests.cs @@ -347,6 +347,10 @@ public sealed class ConsumableAiTests : IDisposable fit(s.Agent); s.Zone.Admit(s.Agent, piloted: true); // back in as a pilot: the zone gives it a new Minion and CombatState s.Zone.Agents.Single().Task = null; // no orbits to patrol in the test zone + // Deactivation cleared its senses: it senses the prey again, as the sensors would after the jump in. + s.Agent.SetIff(s.Prey, true); + s.Agent.EntityInfoGathered[s.Prey] = 1f; + if (!s.Agent.VisibleEnemies.Contains(s.Prey)) s.Agent.VisibleEnemies.Add(s.Prey); s.Place(30f, 0f); s.Zone.Update(.05f); s.Zone.Update(.05f);