diff --git a/tests/wiring.test.mjs b/tests/wiring.test.mjs index d64999d..3c4e048 100644 --- a/tests/wiring.test.mjs +++ b/tests/wiring.test.mjs @@ -329,7 +329,8 @@ test('dense clouds conceal ships and suppress long-range pirate fire', async () assert.match(source, /this\.player\.setData\('cloudConcealment', playerConcealment\)/); assert.match(source, /const presence = cloud\.getData\('presence'\) \?\? 1/); assert.match(source, /radialStrength \* strength \* presence/); - assert.match(source, /const targetObscured = playerConcealment >= CLOUD_FIRE_SUPPRESSION_CONCEALMENT/); + assert.match(source, /const targetConcealment = targetState\.kind === 'player'/); + assert.match(source, /const targetObscured = targetConcealment >= CLOUD_FIRE_SUPPRESSION_CONCEALMENT/); assert.match(source, /distance > CLOUD_CLOSE_ENGAGE_RANGE/); assert.match(source, /if \(!targetObscured && distance < broadsideRange/); assert.match(source, /concealment: this\.player\?\.getData\?\.\('cloudConcealment'\) \|\| 0/);