Skip to content

Commit 55715c9

Browse files
committed
fix undefined ctx in onPhaseBegin
1 parent e898241 commit 55715c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export function FlowWithPhases({
360360

361361
// Helper to perform start-of-phase initialization.
362362
const startPhase = function(state, config) {
363-
const G = config.onPhaseBegin(state.G, ctx);
363+
const G = config.onPhaseBegin(state.G, state.ctx);
364364

365365
const ctx = { ...state.ctx };
366366
ctx.playOrderPos = config.turnOrder.first(G, ctx);

0 commit comments

Comments
 (0)