don't add ranks for destroyed actors in the first place

This commit is contained in:
Matthias Mailänder
2013-11-03 11:55:21 +01:00
parent 133b79e2c2
commit 22fec9faa7

View File

@@ -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)));
}
}