From 8659456fae41af89e9bdd835ad5982d2e3a09463 Mon Sep 17 00:00:00 2001 From: Jakob Feldmann Date: Fri, 19 Apr 2024 21:27:58 +0200 Subject: [PATCH] fix: IsOut stat wasn't reset when the round ended --- Assets/Scripts/MatchLogic.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/Scripts/MatchLogic.cs b/Assets/Scripts/MatchLogic.cs index 0de4b1c..1efd065 100644 --- a/Assets/Scripts/MatchLogic.cs +++ b/Assets/Scripts/MatchLogic.cs @@ -99,6 +99,13 @@ namespace GameLogic p1.Value.RoundsWon > p2.Value.RoundsWon ? p1 : p2).Key; Opponents = mps.Keys.Where(player => player != Winner).ToList(); } + else + { + foreach (var statistic in mps.Values) + { + statistic.IsOut = false; + } + } } } } \ No newline at end of file