Route the power check for support powers via the tech tree
This commit is contained in:
@@ -19,11 +19,9 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
class RequiresPower : IDisable
|
||||
{
|
||||
readonly Actor self;
|
||||
readonly PowerManager power;
|
||||
public RequiresPower( Actor self )
|
||||
{
|
||||
this.self = self;
|
||||
power = self.Owner.PlayerActor.Trait<PowerManager>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user