Remove redundant (and possibly risky) AttackFollow.CanAttack()

This commit is contained in:
penev92
2015-01-04 23:50:54 +02:00
parent 17dfda4c9d
commit 1c3dc388ea

View File

@@ -27,14 +27,6 @@ namespace OpenRA.Mods.Common.Traits
public AttackFollow(Actor self, AttackFollowInfo info)
: base(self, info) { }
protected override bool CanAttack(Actor self, Target target)
{
if (!target.IsValidFor(self))
return false;
return base.CanAttack(self, target);
}
public virtual void Tick(Actor self)
{
DoAttack(self, Target);