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:
parent
1fea9cd2e1
commit
c1b83e84e5
1 changed files with 6 additions and 2 deletions
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue