From 27afe738f658ae69eaec504970a27b0e1a491ead Mon Sep 17 00:00:00 2001
From: Adrian Paschkowski <git@wasdennnoch.me>
Date: Sat, 17 Apr 2021 14:07:14 +0200
Subject: [PATCH] Resurrect dead Enemies on round loss

---
 Assets/Scripts/Fighters/Enemy.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/Fighters/Enemy.cs b/Assets/Scripts/Fighters/Enemy.cs
index d783b26..25a4bd7 100644
--- a/Assets/Scripts/Fighters/Enemy.cs
+++ b/Assets/Scripts/Fighters/Enemy.cs
@@ -49,8 +49,8 @@ public abstract class Enemy : Fighter
 
     public override void OnRoundEnd(bool won)
     {
-        // Only run this when a round was actually running; OnRoundEnd is also called in the initialization phase.
-        if (roundRunning && !alive)
+        // Destroy all dead Enemies after a successful round
+        if (won && !alive)
         {
             Destroy(gameObject);
             return;
-- 
GitLab