diff --git a/OpenRa.Game/Traits/AttackTurreted.cs b/OpenRa.Game/Traits/AttackTurreted.cs index c2bc84d13c..20941b5886 100755 --- a/OpenRa.Game/Traits/AttackTurreted.cs +++ b/OpenRa.Game/Traits/AttackTurreted.cs @@ -26,12 +26,8 @@ namespace OpenRa.Game.Traits protected override void QueueAttack( Actor self, Order order ) { - if (self.traits.Contains()) - { - var b = self.traits.Get(); - if (b.InsuffientPower()) - return; - } + if (self.traits.Contains() && self.traits.Get().InsuffientPower()) + return; const int RangeTolerance = 1; /* how far inside our maximum range we should try to sit */ /* todo: choose the appropriate weapon, when only one works against this target */