File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,9 +289,9 @@ export function UpdateTurnOrderState(
289289 } else {
290290 const t = order . next ( G , ctx ) ;
291291 const type = typeof t ;
292- if ( type !== 'number' ) {
292+ if ( t !== undefined && type !== 'number' ) {
293293 logging . error (
294- `invalid value returned by turn.order.next — expected number got ${ type } “${ t } ”.`
294+ `invalid value returned by turn.order.next — expected number or undefined, got ${ type } “${ t } ”.`
295295 ) ;
296296 }
297297
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export interface StageMap {
159159
160160export interface TurnOrderConfig {
161161 first : ( G : any , ctx : Ctx ) => number ;
162- next : ( G : any , ctx : Ctx ) => number ;
162+ next : ( G : any , ctx : Ctx ) => number | undefined ;
163163 playOrder ?: ( G : any , ctx : Ctx ) => PlayerID [ ] ;
164164}
165165
You can’t perform that action at this time.
0 commit comments