• Mahmoud Aglan's avatar
    fix: Ludo local-multi rolls correct player + display opponent profile in live · 41f869f8
    Mahmoud Aglan authored
    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: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    41f869f8
Name
Last commit
Last update
..
core Loading commit data...
lib Loading commit data...
modules Loading commit data...
engine.js Loading commit data...