File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -227,11 +227,13 @@ eventManager.on('GameStart', function battleLogger() {
227227 debug ( data , 'debugging.raw.turnStart' ) ;
228228 lastEffect = 0 ;
229229 if ( data . numTurn !== turn ) {
230- log . add ( `${ turnText } ${ data . numTurn } ` ) ;
230+ turn = data . numTurn ;
231+ log . add ( `${ turnText } ${ turn } ` ) ;
232+ }
233+ if ( currentTurn !== data . idPlayer ) {
234+ currentTurn = data . idPlayer ; // It would (kindof) help to actually update who's turn it is
235+ log . add ( make . player ( players [ currentTurn ] ) , '\'s turn' ) ;
231236 }
232- currentTurn = data . idPlayer ; // It would (kindof) help to actually update who's turn it is
233- turn = data . numTurn ;
234- log . add ( make . player ( players [ currentTurn ] ) , '\'s turn' ) ;
235237 } ) ;
236238 eventManager . on ( 'getTurnEnd' , function turnEnd ( data ) {
237239 debug ( data , 'debugging.raw.turnEnd' ) ;
You can’t perform that action at this time.
0 commit comments