LaunchSuppressorTests: activate the beam through its ConstantWeapon type

15b12cb9 does not build: Behavior has no Activate; this commit fixes the one compile error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-13 05:14:51 +02:00
commit 7e0b950d63

View file

@ -213,7 +213,7 @@ public sealed partial class ContactRevealTests
foreach (var ship in new[] { paying, twin, control })
{
ship.SetTarget(TargetRef.None);
BeamItem(ship).Behaviors.Single(b => b is ConstantWeapon).Activate();
BeamItem(ship).Behaviors.OfType<ConstantWeapon>().Single().Activate();
}
var p = CellOf(SuppressorItem(paying, "Suppressor"));
var t = CellOf(SuppressorItem(twin, "SuppressorCold"));