Fix turrets following target even if AttackTurreted is disabled or paused

This commit is contained in:
reaperrr
2017-11-16 15:26:15 +01:00
committed by Pavel Penev
parent e215c5019e
commit 5ec3ad0957

View File

@@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.Traits
public bool FaceTarget(Actor self, Target target)
{
if (attack == null || attack.IsTraitDisabled)
if (attack == null || attack.IsTraitDisabled || attack.IsTraitPaused)
return false;
var pos = self.CenterPosition;