Allow units to give way when path is blocked by oncoming unit.
This commit is contained in:
@@ -194,7 +194,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
// Find any harvestable resources:
|
||||
List<CPos> path;
|
||||
using (var search = PathSearch.Search(self.World, mobile.Locomotor, self, true, loc =>
|
||||
using (var search = PathSearch.Search(self.World, mobile.Locomotor, self, BlockedByActor.Stationary, loc =>
|
||||
domainIndex.IsPassable(self.Location, loc, locomotorInfo) && harv.CanHarvestCell(self, loc) && claimLayer.CanClaimCell(self, loc))
|
||||
.WithCustomCost(loc =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user