diff --git a/scripts/sim/duel-core-sim.ts b/scripts/sim/duel-core-sim.ts index 346a3ae..8645184 100644 --- a/scripts/sim/duel-core-sim.ts +++ b/scripts/sim/duel-core-sim.ts @@ -43,6 +43,19 @@ export async function makeDuelSim(sampleFile: string, overrides: Record 0) { + const create = engine.createMatch; + engine.createMatch = (r, d, seed) => { + const s = create(r, d, seed); + const second = (1 - s.firstSeat) as 0 | 1; + const p = s.players[second]; + p.hand.push(...p.library.splice(0, extra)); + return s; + }; + } return { name: 'duel', engine, lens: engine.lens, pool, deckPayload: cs => cs.map(c => c.card),