Fix support powers not being enabled by cheats

This commit is contained in:
abcdefg30
2016-10-15 18:14:24 +02:00
parent 79c95364fb
commit e318c028ba

View File

@@ -160,7 +160,7 @@ namespace OpenRA.Mods.Common.Traits
public int RemainingTime;
public int TotalTime;
public bool Active { get; private set; }
public bool Disabled { get { return !prereqsAvailable || !instancesEnabled; } }
public bool Disabled { get { return (!prereqsAvailable && !manager.DevMode.AllTech) || !instancesEnabled; } }
public SupportPowerInfo Info { get { return Instances.Select(i => i.Info).FirstOrDefault(); } }
public bool Ready { get { return Active && RemainingTime == 0; } }