diff --git a/OpenRa.Game/SupportPowers/ChronospherePower.cs b/OpenRa.Game/SupportPowers/ChronospherePower.cs index bb5615f072..bd6d10f8a8 100644 --- a/OpenRa.Game/SupportPowers/ChronospherePower.cs +++ b/OpenRa.Game/SupportPowers/ChronospherePower.cs @@ -20,12 +20,12 @@ namespace OpenRa.SupportPowers Sound.Play("chrono2.aud"); // Play chronosphere active anim - var chronosphere = Game.world.Actors.Where(a => a.Owner == p.Owner && a.traits.Contains()).FirstOrDefault(); + var chronosphere = target.World.Actors.Where(a => a.Owner == p.Owner && a.traits.Contains()).FirstOrDefault(); if (chronosphere != null) Game.controller.AddOrder(Order.PlayAnimation(chronosphere, "active")); // Trigger screen desaturate effect - foreach (var a in Game.world.Actors.Where(a => a.traits.Contains())) + foreach (var a in target.World.Actors.Where(a => a.traits.Contains())) a.traits.Get().DoChronoshift(); } SupportPower p; diff --git a/OpenRa.Game/SupportPowers/GpsSatellite.cs b/OpenRa.Game/SupportPowers/GpsSatellite.cs index 5ef5f74407..195d99abab 100644 --- a/OpenRa.Game/SupportPowers/GpsSatellite.cs +++ b/OpenRa.Game/SupportPowers/GpsSatellite.cs @@ -12,13 +12,13 @@ namespace OpenRa.SupportPowers public void IsChargingNotification(SupportPower p) { } public void IsReadyNotification(SupportPower p) { - var launchSite = Game.world.Actors + var launchSite = p.Owner.World.Actors .FirstOrDefault(a => a.Owner == p.Owner && a.traits.Contains()); if (launchSite == null) return; - Game.world.AddFrameEndTask(w => + p.Owner.World.AddFrameEndTask(w => { w.Add(new SatelliteLaunch(launchSite)); w.Add(new DelayedAction(revealDelay, () => p.Owner.Shroud.HasGPS = true)); diff --git a/OpenRa.Game/SupportPowers/IronCurtainPower.cs b/OpenRa.Game/SupportPowers/IronCurtainPower.cs index a612087446..dc0b5deaa5 100644 --- a/OpenRa.Game/SupportPowers/IronCurtainPower.cs +++ b/OpenRa.Game/SupportPowers/IronCurtainPower.cs @@ -25,7 +25,7 @@ namespace OpenRa.SupportPowers Sound.Play("ironcur9.aud"); // Play active anim - var ironCurtain = Game.world.Actors + var ironCurtain = target.World.Actors .Where(a => a.Owner == p.Owner && a.traits.Contains()) .FirstOrDefault(); if (ironCurtain != null)