public static bool IsIncapacitated(this Pilot pilot) { try { if (!pilot.IsIncapacitated && lastMechDef != null && lastMechDef.HasDestroyedEngine()) { return(true); } } catch (Exception e) { Control.Logger.Error.Log(e); } return(pilot.IsIncapacitated); }