Fix TakeCover dependence on AttackTurreted.

This commit is contained in:
Zimmermann Gyula
2016-03-22 10:38:24 +01:00
parent 3a6c1de725
commit b0239368a1
2 changed files with 6 additions and 1 deletions

View File

@@ -74,6 +74,11 @@ namespace OpenRA.Mods.Common.Traits
localOffset = WVec.Zero;
}
public override bool HasAchievedDesiredFacing
{
get { return true; }
}
public int GetDamageModifier(Actor attacker, IWarhead warhead)
{
if (!IsProne)

View File

@@ -116,7 +116,7 @@ namespace OpenRA.Mods.Common.Traits
return HasAchievedDesiredFacing;
}
public bool HasAchievedDesiredFacing
public virtual bool HasAchievedDesiredFacing
{
get { return DesiredFacing != null && TurretFacing == DesiredFacing.Value; }
}