Reset commander damage on game reset
This commit is contained in:
parent
15711150cc
commit
0eac844638
1 changed files with 1 additions and 0 deletions
|
@ -475,6 +475,7 @@ public:
|
||||||
M5.Display.startWrite();
|
M5.Display.startWrite();
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
players[i].lifeTotal = 40;
|
players[i].lifeTotal = 40;
|
||||||
|
for (int j = 0; j < 4; j++) players[i].commanderDamage[j] = 0;
|
||||||
drawPlayer(i);
|
drawPlayer(i);
|
||||||
}
|
}
|
||||||
M5.Display.endWrite();
|
M5.Display.endWrite();
|
||||||
|
|
Loading…
Reference in a new issue