To go along with introducing the 'cloaked hbox', ensure that the cloak is disabled if at low power.
This commit is contained in:
@@ -81,6 +81,8 @@ namespace OpenRA.Mods.RA
|
|||||||
if (remainingTime > 0 && canCloak)
|
if (remainingTime > 0 && canCloak)
|
||||||
if (--remainingTime <= 0)
|
if (--remainingTime <= 0)
|
||||||
Sound.Play(info.CloakSound, self.CenterLocation);
|
Sound.Play(info.CloakSound, self.CenterLocation);
|
||||||
|
if (self.IsDisabled())
|
||||||
|
Uncloak();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsVisible(Actor self)
|
public bool IsVisible(Actor self)
|
||||||
|
|||||||
Reference in New Issue
Block a user