From 020a42fcb6e37fa58f37eed4228fdb24dc2b467f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 21:31:38 +0200 Subject: [PATCH] Execute the weapon directly in the stance tests The stance fixture has a shooter the zone cannot tick; the weapon runs on its own. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/IffAndCombatTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs b/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs index 814ab0176..9eed9d17e 100644 --- a/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs +++ b/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs @@ -250,7 +250,7 @@ public sealed class IffAndCombatTests : IDisposable weapon.Activate(); - zone.Update(.01f); + weapon.Execute(.01f); Assert.True(weapon.CanFire); // Trigger() was safed: no burst fired, so no cooldown } @@ -267,7 +267,7 @@ public sealed class IffAndCombatTests : IDisposable shooter.SetIff(target, true); weapon.Activate(); - zone.Update(.01f); + weapon.Execute(.01f); Assert.False(weapon.CanFire); // Trigger() ran: the burst fired and the cooldown runs } @@ -281,7 +281,7 @@ public sealed class IffAndCombatTests : IDisposable var weapon = (InstantWeapon) shooter.Equipment.Single(e => e.Behaviors.Any(b => b is Weapon)).Behaviors.Single(b => b is Weapon); weapon.Activate(); - zone.Update(.01f); + weapon.Execute(.01f); Assert.False(weapon.CanFire); // Trigger() ran: the burst fired and the cooldown runs }