From b180fd732dc053fbe15971e503a4aec983431f55 Mon Sep 17 00:00:00 2001 From: soul Date: Thu, 22 Oct 2026 02:47:57 +0200 Subject: [PATCH] Command seam, player: the Previous and NearestEnemy pins start from no target, where no other verb gives their answer Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/PilotSeamPlayerTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/PilotSeamPlayerTests.cs b/tests/Aetheria.Shared.Tests/PilotSeamPlayerTests.cs index 8630a6b05..3c97f7fc9 100644 --- a/tests/Aetheria.Shared.Tests/PilotSeamPlayerTests.cs +++ b/tests/Aetheria.Shared.Tests/PilotSeamPlayerTests.cs @@ -69,11 +69,14 @@ public sealed partial class RunStartTests arena.Update(SeamDt); Assert.Same(third, east.Target.Value.Entity); + // With nothing held, Previous picks the farthest and Next the nearest. + east.SetTarget(TargetRef.None); east.Command.Verb(TargetVerb.Previous); arena.Update(SeamDt); - Assert.Same(west, east.Target.Value.Entity); + Assert.Same(third, east.Target.Value.Entity); - // Enemies only: the farther hostile, not the nearer neutral. + // Enemies only: the farther hostile, not the nearer neutral (Next, from nothing, would pick the neutral). + east.SetTarget(TargetRef.None); east.SetIff(third, true); east.Command.Verb(TargetVerb.NearestEnemy); arena.Update(SeamDt);