$Pl_Repaired = RepairPlayer($Pl->Player, $Pl->Eq['D'], $Pl->Eq['E'], 0, 0, $RepUpdateFlag);
    $Pl->Player['hp'] = $Pl_Repaired['hp'];
    $Pl->Player['en'] = $Pl_Repaired['en'];
    $Pl->Player['sp'] = $Pl_Repaired['sp'];
    $Pl->Player['status'] = $Pl_Repaired['status'];
    $Pl->Player['time1'] = $Pl_Repaired['time1'];
}
// Initialize Player Details
$Pl->iniFixes(true);
$Pl->analyzeHypermodeState();
$Pl->ProcessAllWeapon();
//
// Prephase II
//
// Set Spec Sub-System: Check Requirements
$Pl->checkSetSpec();
if ($Pl->SetSpecID) {
    // Include Interface
    include_once 'includes/spc/spc.superclass.php';
    // Include Implementation Classes
    include_once 'includes/spc/spc.' . $Pl->SetSpecID . '.class.php';
    $str = '$Pl->SetSpec = new sSpc_' . $Pl->SetSpecID . '($Pl);';
    eval($str);
    $Pl->SetSpec->checkSetActivation();
    $Pl->SetSpec->prephase();
}
// Apply Weapon/Equipment Type Custom Limitations
$Pl->applyTypeCustoms();
//
// Metaphase
//
 // Prephase I
 //
 //Get User MS Stats
 if ($Op->Player['msuit'] == "nil") {
     $Op->Player['msuit'] = '0';
 }
 $Op->ProcessMS();
 // Initialize Player Details
 $Op->iniFixes(true);
 $Op->analyzeHypermodeState();
 $Op->ProcessAllWeapon();
 //
 // Prephase II
 //
 // Set Spec Sub-System: Check Requirements
 $Op->checkSetSpec();
 if ($Op->SetSpecID) {
     // Include Interface
     include_once 'includes/spc/spc.superclass.php';
     // Include Implementation Classes
     include_once 'includes/spc/spc.' . $Op->SetSpecID . '.class.php';
     $str = '$Op->SetSpec = new sSpc_' . $Op->SetSpecID . '($Pl);';
     eval($str);
     $Op->SetSpec->checkSetActivation();
     $Op->SetSpec->prephase();
 }
 // Apply Weapon/Equipment Type Custom Limitations
 $Op->applyTypeCustoms();
 //
 // Metaphase
 //