diff --git a/OpenRA.Mods.RA/Buildings/Sell.cs b/OpenRA.Mods.RA/Buildings/Sell.cs index 881aadfe22..85da84baa9 100755 --- a/OpenRA.Mods.RA/Buildings/Sell.cs +++ b/OpenRA.Mods.RA/Buildings/Sell.cs @@ -9,7 +9,8 @@ #endregion using System.Collections.Generic; -using OpenRA.Traits; +using OpenRA.Traits; +using OpenRA.Mods.RA.Effects; namespace OpenRA.Mods.RA.Buildings { @@ -34,7 +35,10 @@ namespace OpenRA.Mods.RA.Buildings pr.GiveCash(refund); foreach (var ns in self.TraitsImplementing()) - ns.Sold(self); + ns.Sold(self); + + if (self.World.LocalPlayer != null && self.Owner.Stances[self.World.LocalPlayer] == Stance.Ally) + self.World.AddFrameEndTask(w => w.Add(new CashTick(refund, 30, 2, self.CenterLocation, self.Owner.ColorRamp.GetColor(0)))); self.Destroy(); } diff --git a/OpenRA.Mods.RA/Effects/CashTick.cs b/OpenRA.Mods.RA/Effects/CashTick.cs index 12a7d197da..d8cc845f05 100644 --- a/OpenRA.Mods.RA/Effects/CashTick.cs +++ b/OpenRA.Mods.RA/Effects/CashTick.cs @@ -10,8 +10,7 @@ using System.Collections.Generic; using System.Drawing; -using OpenRA.Effects; -using OpenRA.GameRules; +using OpenRA.Effects; using OpenRA.Traits; namespace OpenRA.Mods.RA.Effects diff --git a/OpenRA.Mods.RA/OreRefinery.cs b/OpenRA.Mods.RA/OreRefinery.cs index dd8e502704..ea9ba97cc6 100644 --- a/OpenRA.Mods.RA/OreRefinery.cs +++ b/OpenRA.Mods.RA/OreRefinery.cs @@ -6,18 +6,16 @@ * as published by the Free Software Foundation. For more information, * see COPYING. */ -#endregion - -using System; -using System.Collections.Generic; -using System.Linq; -using OpenRA.Mods.RA.Activities; -using OpenRA.Mods.RA.Buildings; +#endregion + +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using OpenRA.Mods.RA.Activities; +using OpenRA.Mods.RA.Effects; +using OpenRA.Mods.RA.Move; +using OpenRA.Mods.RA.Render; using OpenRA.Traits; -using OpenRA.Mods.RA.Render; -using OpenRA.Mods.RA.Move; -using System.Drawing; -using OpenRA.Mods.RA.Effects; namespace OpenRA.Mods.RA {