mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-07-18 16:21:24 -05:00
Fix the win counter when rewinding from the results screen in replays
This commit is contained in:
parent
550e318c55
commit
06f929b547
|
|
@ -676,6 +676,7 @@ function showResult() {
|
|||
el.classList.remove('lose');
|
||||
el.classList.remove('draw');
|
||||
el.innerText = 'Victory';
|
||||
if (currentReplay) currentGame.players[i].gamesWon++;
|
||||
playerBars[i].winCounter.wins++;
|
||||
} else {
|
||||
el.classList.remove('win');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user