Make oil derricks repairable by engineers

This commit is contained in:
Scott_NZ
2013-01-12 18:55:59 +13:00
parent 5ed383e3e2
commit 742a27158a
3 changed files with 8 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.RA
public override bool CanTargetActor(Actor self, Actor target, bool forceAttack, bool forceQueued, ref string cursor)
{
if( !base.CanTargetActor( self, target, forceAttack, forceQueued, ref cursor ) ) return false;
if (!target.HasTrait<RepairableBuilding>())
if (!target.HasTrait<EngineerRepairable>())
return false;
if (self.Owner.Stances[ target.Owner ] != Stance.Ally)
@@ -75,4 +75,8 @@ namespace OpenRA.Mods.RA
}
}
}
class EngineerRepairableInfo : TraitInfo<EngineerRepairable> { }
class EngineerRepairable { }
}