diff --git a/OpenRA.Mods.RA/Projectiles/TeslaZap.cs b/OpenRA.Mods.RA/Projectiles/TeslaZap.cs index eec43c0780..63995f222d 100644 --- a/OpenRA.Mods.RA/Projectiles/TeslaZap.cs +++ b/OpenRA.Mods.RA/Projectiles/TeslaZap.cs @@ -30,6 +30,8 @@ namespace OpenRA.Mods.RA.Projectiles public readonly int BrightZaps = 1; public readonly int DimZaps = 2; + public readonly int Duration = 2; + public IEffect Create(ProjectileArgs args) { return new TeslaZap(this, args); } } @@ -38,7 +40,7 @@ namespace OpenRA.Mods.RA.Projectiles readonly ProjectileArgs args; readonly TeslaZapInfo info; TeslaZapRenderable zap; - int timeUntilRemove = 2; // # of frames + int timeUntilRemove; // # of frames bool doneDamage = false; bool initialized = false; @@ -46,6 +48,7 @@ namespace OpenRA.Mods.RA.Projectiles { this.args = args; this.info = info; + this.timeUntilRemove = info.Duration; } public void Tick(World world)