BUILD200 (2026.11.05.1) — закрепить плашку удаления и снимать штраф после гола по ACK vMix
This commit is contained in:
@@ -118,22 +118,27 @@ for (const side of ['home', 'away']) {
|
||||
const h = runtime(penalty('four', side, 4));
|
||||
await h.context.rebalanceVmixPenaltyTargets({ scoreboardActive: true });
|
||||
await settle(h);
|
||||
const input = h.targets[other].input, start = h.native.trace.length;
|
||||
const input = h.targets[side].input, start = h.native.trace.length;
|
||||
await addPreparedPenalty(h, penalty('two', other, 2));
|
||||
const commands = h.native.trace.slice(start).map(x => x.command);
|
||||
assert.equal(h.native.clocks.get(input).positionMs, 120000,
|
||||
'A shorter opposing penalty supplies the new 4on4 transition countdown');
|
||||
assert.equal(h.native.clocks.get(input).running, true);
|
||||
assert.ok(commands.some(x => x.Function === 'SetCountdown' && x.Input === input && x.Value === '00:02:00'));
|
||||
assert.ok(!commands.some(x => /^OverlayInput[1-8]In$/.test(x.Function) && x.Input === input),
|
||||
'A changed transition timer is reseeded in place without replaying its plate IN');
|
||||
assert.equal(commands.filter(x => /^OverlayInput[1-8]In$/.test(x.Function) && x.Input === input).length, 1,
|
||||
'The unequal-duration cycle switches once to the longer-penalty physical plate');
|
||||
const reconciled = h.native.trace.length;
|
||||
await h.context.rebalanceVmixPenaltyTargets({ scoreboardActive: true, forceOverlay: true });
|
||||
await settle(h);
|
||||
assert.ok(!h.native.trace.slice(reconciled).some(x => /^OverlayInput[1-8]In$/.test(x.command.Function) && x.command.Input === input),
|
||||
'The newly selected physical plate must not replay IN during reconciliation');
|
||||
assert.equal(h.errors.length, 0);
|
||||
};
|
||||
cases[`expired_two_continues_four_${side}`] = async () => {
|
||||
const h = runtime(penalty('four', side, 4, 121000));
|
||||
await h.context.rebalanceVmixPenaltyTargets({ scoreboardActive: true });
|
||||
await addPreparedPenalty(h, penalty('two', other, 2, 1000));
|
||||
const input = h.targets[other].input;
|
||||
const input = h.targets[side].input;
|
||||
h.initialiseTicks();
|
||||
await h.frames(1000);
|
||||
await h.tick(40);
|
||||
|
||||
Reference in New Issue
Block a user