From f0001856bc7ab5ee204c7f4c36f3e34f821a6221 Mon Sep 17 00:00:00 2001 From: earthpig Date: Fri, 4 May 2012 23:48:28 -0700 Subject: [PATCH] To go along with introducing the 'cloaked hbox', ensure that the cloak is disabled if at low power. --- OpenRA.Mods.RA/Cloak.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.RA/Cloak.cs b/OpenRA.Mods.RA/Cloak.cs index 038d20e55f..8002adee7f 100644 --- a/OpenRA.Mods.RA/Cloak.cs +++ b/OpenRA.Mods.RA/Cloak.cs @@ -81,6 +81,8 @@ namespace OpenRA.Mods.RA if (remainingTime > 0 && canCloak) if (--remainingTime <= 0) Sound.Play(info.CloakSound, self.CenterLocation); + if (self.IsDisabled()) + Uncloak(); } public bool IsVisible(Actor self)