30 {
32
33 if (targetEntity.HasEnergyManager())
34 {
35 string selection = targetEntity.GetActionComponentName(target.GetComponentIndex());
36
38 return targetEntity.GetCompEM().GetPlugOwner(selection) != null;
39 else
40 return targetEntity.GetCompEM().IsSelectionAPlug(selection);
41 }
42
43 return false;
44 }
proto native CGame GetGame()