Increment actor generation on cloak.
This commit is contained in:
@@ -82,9 +82,12 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public void Tick(Actor self)
|
public void Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (remainingTime > 0 && canCloak)
|
if (remainingTime > 0 && canCloak && --remainingTime <= 0)
|
||||||
if (--remainingTime <= 0)
|
{
|
||||||
Sound.Play(info.CloakSound, self.CenterPosition);
|
self.Generation++;
|
||||||
|
Sound.Play(info.CloakSound, self.CenterPosition);
|
||||||
|
}
|
||||||
|
|
||||||
if (self.IsDisabled())
|
if (self.IsDisabled())
|
||||||
Uncloak();
|
Uncloak();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user