mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-08-22 02:44:01 -05:00
Passing shouldn't count toward 'special points' stats
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user