Make BaseProvider PausableConditional

This commit is contained in:
Mustafa Alperen Seki
2018-01-16 12:38:20 +03:00
committed by reaperrr
parent 12054506e1
commit c976bb1d7b
3 changed files with 14 additions and 9 deletions

View File

@@ -159,7 +159,7 @@ namespace OpenRA.Mods.Common.Traits
// BuildingInfo.IsCloseEnoughToBase has already verified that this is a valid build location
var provider = buildingInfo.FindBaseProvider(w, self.Owner, order.TargetLocation);
if (provider != null)
provider.Trait<BaseProvider>().BeginCooldown();
provider.BeginCooldown();
}
if (GetNumBuildables(self.Owner) > prevItems)