Fix harvesters refusing to queue dock orders whenn empty
(cherry picked from commit 19040126046a53fd5092515f2a4895fdd5c9c87a)
This commit is contained in:
@@ -137,6 +137,12 @@ namespace OpenRA.Mods.Common.Traits
|
||||
&& (self.Owner == hostActor.Owner || (ignoreOccupancy && self.Owner.IsAlliedWith(hostActor.Owner)));
|
||||
}
|
||||
|
||||
public override bool CanQueueDockAt(Actor hostActor, IDockHost host, bool forceEnter, bool isQueued)
|
||||
{
|
||||
return base.CanQueueDockAt(hostActor, host, forceEnter, isQueued)
|
||||
&& self.Owner.IsAlliedWith(hostActor.Owner);
|
||||
}
|
||||
|
||||
void UpdateCondition(Actor self)
|
||||
{
|
||||
if (string.IsNullOrEmpty(Info.EmptyCondition))
|
||||
|
||||
Reference in New Issue
Block a user