From 464eae8bc44fd591312cc91d9ec46a316a66b687 Mon Sep 17 00:00:00 2001 From: abc013 Date: Mon, 5 Sep 2016 19:52:13 +0200 Subject: [PATCH] Fixed enemy missiles not being deflected by Radar Jammers --- OpenRA.Mods.Common/Projectiles/Missile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Projectiles/Missile.cs b/OpenRA.Mods.Common/Projectiles/Missile.cs index 58101b5874..eb4f80c546 100644 --- a/OpenRA.Mods.Common/Projectiles/Missile.cs +++ b/OpenRA.Mods.Common/Projectiles/Missile.cs @@ -396,7 +396,7 @@ namespace OpenRA.Mods.Common.Projectiles if ((tp.Actor.CenterPosition - pos).HorizontalLengthSquared > tp.Trait.Range.LengthSquared) return false; - if (!tp.Actor.Owner.Stances[args.SourceActor.Owner].HasStance(tp.Trait.DeflectionStances)) + if (!tp.Trait.DeflectionStances.HasStance(tp.Actor.Owner.Stances[args.SourceActor.Owner])) return false; return tp.Actor.World.SharedRandom.Next(100 / tp.Trait.Chance) == 0;