From 22fec9faa7af6497083cd1d8903d56155d4b7151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 3 Nov 2013 11:55:21 +0100 Subject: [PATCH] don't add ranks for destroyed actors in the first place --- OpenRA.Mods.RA/GainsExperience.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/GainsExperience.cs b/OpenRA.Mods.RA/GainsExperience.cs index fa0a3fd1a7..acfe47709b 100644 --- a/OpenRA.Mods.RA/GainsExperience.cs +++ b/OpenRA.Mods.RA/GainsExperience.cs @@ -78,7 +78,7 @@ namespace OpenRA.Mods.RA Sound.PlayNotification(self.Owner, "Sounds", "LevelUp", self.Owner.Country.Race); self.World.AddFrameEndTask(w => w.Add(new CrateEffect(self, "levelup"))); - if (Level == 1) + if (Level == 1 && !self.Destroyed) self.World.AddFrameEndTask(w => w.Add(new Rank(self))); } }