From c809e19e06d2e826ad78810aa9fa529a0e87910d Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Thu, 29 Dec 2022 20:20:02 +1100 Subject: [PATCH] Passing shouldn't count toward 'special points' stats --- TableturfBattleClient/src/Pages/GamePage.ts | 2 -- TableturfBattleServer/Game.cs | 1 - 2 files changed, 3 deletions(-) diff --git a/TableturfBattleClient/src/Pages/GamePage.ts b/TableturfBattleClient/src/Pages/GamePage.ts index 3346a85..1c75cd1 100644 --- a/TableturfBattleClient/src/Pages/GamePage.ts +++ b/TableturfBattleClient/src/Pages/GamePage.ts @@ -156,7 +156,6 @@ replayNextButton.addEventListener('click', _ => { } else if (move.isPass) { player.passes++; player.specialPoints++; - player.totalSpecialPoints++; const el = document.createElement('div'); el.className = 'passLabel'; el.innerText = 'Pass'; @@ -214,7 +213,6 @@ replayPreviousButton.addEventListener('click', _ => { if (move.isPass) { currentGame.players[i].passes--; currentGame.players[i].specialPoints--; - currentGame.players[i].totalSpecialPoints--; } else if ((move as PlayMove).isSpecialAttack) currentGame.players[i].specialPoints += (move as PlayMove).card.specialCost; updateStats(i); diff --git a/TableturfBattleServer/Game.cs b/TableturfBattleServer/Game.cs index 03a152f..b1a25f0 100644 --- a/TableturfBattleServer/Game.cs +++ b/TableturfBattleServer/Game.cs @@ -203,7 +203,6 @@ public class Game { if (move.IsPass) { player.Passes++; player.SpecialPoints++; - player.TotalSpecialPoints++; } else { if (move.IsSpecialAttack) player.SpecialPoints -= move.Card.SpecialCost;