From 0eac8446387e762ff1262164bf2cdae41e36d545 Mon Sep 17 00:00:00 2001 From: Correl Date: Tue, 21 Mar 2023 17:33:02 -0400 Subject: [PATCH] Reset commander damage on game reset --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index ddafd48..ea3c8a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -475,6 +475,7 @@ public: M5.Display.startWrite(); for (int i = 0; i < 4; i++) { players[i].lifeTotal = 40; + for (int j = 0; j < 4; j++) players[i].commanderDamage[j] = 0; drawPlayer(i); } M5.Display.endWrite();