fix: Ludo local-multi rolls correct player + display opponent profile in live
Critical bug: handleRoll used myPlayerIndex (always 0) instead of
game.currentPlayer, so in local-multi the dice always moved Red's
pieces regardless of whose turn it was.
Fixes:
- handleRoll uses game.currentPlayer for dice animation, getValidMoves,
and getBotMove (no longer hardcoded to player 0)
- updatePanels checks game.currentPlayer.finished (not myPlayerIndex)
- Turn status badge shows player name + color in local-multi mode
- Live multiplayer: fetch and display opponent avatar (not just name)
- Update PLAYER_NAMES array when opponent profile loads
- All juice.burst/fireworkBurst use boardSlot for correct colors
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment