Fix Enter cursor for non-TakeOffOnResupply
If the aircraft does not take off on resupply, we allow it to enter resuppliers without ForceMove modifier. ResolveOrder already handled this correctly, only the cursor shown was wrong.
This commit is contained in:
@@ -931,7 +931,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
target => Reservable.IsAvailableFor(target, self) && AircraftCanResupplyAt(target, true));
|
||||
|
||||
yield return new EnterAlliedActorTargeter<BuildingInfo>("Enter", 5,
|
||||
AircraftCanEnter, target => Reservable.IsAvailableFor(target, self) && AircraftCanResupplyAt(target));
|
||||
AircraftCanEnter,
|
||||
target => Reservable.IsAvailableFor(target, self) && AircraftCanResupplyAt(target, !Info.TakeOffOnResupply));
|
||||
|
||||
yield return new AircraftMoveOrderTargeter(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user