FlightTests: the combat transition tests give the pilot a track it sees

Entity clears a target its pilot does not see; the earlier commit set one
without perception, so the pilot never entered combat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-08 18:31:32 +02:00
commit c1b83e84e5

View file

@ -564,7 +564,9 @@ public sealed class FlightTests : IDisposable
var ship = Pilot(null);
var minion = PatrollingMinion(ship);
ship.SetTarget(new TargetRef(Track()));
var track = Track();
See(ship, track);
ship.SetTarget(new TargetRef(track));
minion.Update(.1f);
Assert.IsType<CombatState>(CurrentState(minion));
@ -580,7 +582,9 @@ public sealed class FlightTests : IDisposable
{
var ship = Pilot(null);
var minion = PatrollingMinion(ship);
ship.SetTarget(new TargetRef(Track()));
var track = Track();
See(ship, track);
ship.SetTarget(new TargetRef(track));
for (var i = 0; i < 5; i++)
{