EW 3 tests: forbid by direct PresencePermitted (Update re-derives the security level); listed-once after a tick
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
49423b61fe
commit
8a779b3aa8
2 changed files with 6 additions and 3 deletions
|
|
@ -281,6 +281,8 @@ public sealed class IffAndCombatTests : IDisposable
|
|||
Assert.Null(none); // received, and it claims no faction
|
||||
Assert.True(patrol.IsHostileTo(stranger));
|
||||
Assert.Equal(1, patrol.VisibleEnemies.Count(e => e == stranger)); // filed hostile at once, listed once
|
||||
zone.Update(.01f);
|
||||
Assert.Equal(1, patrol.VisibleEnemies.Count(e => e == stranger)); // still listed once after the per-tick refresh
|
||||
Assert.DoesNotContain(stranger, patrol.VisibleFriendlies);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue