Reset nextScanTime only when actually scanning for targets.
This commit is contained in:
@@ -290,12 +290,12 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (nextScanTime <= 0 && ActiveAttackBases.Any())
|
||||
{
|
||||
nextScanTime = self.World.SharedRandom.Next(Info.MinimumScanTimeInterval, Info.MaximumScanTimeInterval);
|
||||
|
||||
foreach (var dat in disableAutoTarget)
|
||||
if (dat.DisableAutoTarget(self, allowMove))
|
||||
return Target.Invalid;
|
||||
|
||||
nextScanTime = self.World.SharedRandom.Next(Info.MinimumScanTimeInterval, Info.MaximumScanTimeInterval);
|
||||
|
||||
foreach (var ab in ActiveAttackBases)
|
||||
{
|
||||
// If we can't attack right now, there's no need to try and find a target.
|
||||
|
||||
Reference in New Issue
Block a user