Make oil derricks repairable by engineers
This commit is contained in:
@@ -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 { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user