Passing shouldn't count toward 'special points' stats

This commit is contained in:
Andrio Celos
2022-12-29 20:20:02 +11:00
parent 496ac59af4
commit c809e19e06
2 changed files with 0 additions and 3 deletions

View File

@@ -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);

View File

@@ -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;