Make LastSearchFailed local to FindAndDeliverResources.
This commit is contained in:
@@ -111,8 +111,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (!h.Key.IsIdle)
|
||||
{
|
||||
var act = h.Key.CurrentActivity;
|
||||
if (!h.Value.Harvester.LastSearchFailed || act.NextActivity == null || !(act.NextActivity is FindAndDeliverResources))
|
||||
var act = h.Key.CurrentActivity as FindAndDeliverResources;
|
||||
|
||||
// Ignore this actor if FindAndDeliverResources is working fine or it is performing a different activity
|
||||
if (act == null || !act.LastSearchFailed)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user