$Pl->generateSpecialAbilityPool();
// Meta-phase Set Specs
if ($Pl->SetSpecID) {
    $Pl->SetSpec->metaphase();
}
// Pilot Hypermode Effects
$Pl->applyEXAM();
$Pl->applySEEDMode();
$Pl->deterSpecRequirements();
// MS Effects
//Upper-case Mob Effects
$Pl->applyMSMobU();
//Upper-case Tar Effect
$Pl->applyMSTarU();
//Upper-case Def Specs
$Pl->applyMSDefU();
//Organization War Information
$Otp_TellTime = $WarColor = '';
$Otp_Area_Sql = "SELECT `t_start`,`t_end`,`a_org`,`b_org`,`ticket_a`,`ticket_b`,`victory` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_war` WHERE `mission` = 'Atk<{$Player['coordinates']}>' AND `t_end` > '{$CFU_Time}' ORDER BY `t_start` ASC LIMIT 1";
$Otp_Area_Q = mysql_query($Otp_Area_Sql) or die(mysql_error());
$Otp_A_ITar = mysql_fetch_array($Otp_Area_Q);
if ($Otp_A_ITar) {
    $WarColor = 'color: FF7575;';
    if ($Otp_A_ITar['t_start'] >= $CFU_Time) {
        $TimeTSSec = $Otp_A_ITar['t_start'] - $CFU_Time;
        $TimetS['hours'] = floor($TimeTSSec / 3600);
        $TimetS['minutes'] = floor(($TimeTSSec - $TimetS['hours'] * 3600) / 60);
        $TimetS['seconds'] = floor($TimeTSSec - $TimetS['hours'] * 3600 - $TimetS['minutes'] * 60);
        $Otp_TellTime = "還有{$TimetS['hours']}小時{$TimetS['minutes']}分鐘{$TimetS['seconds']}秒開始戰爭。";
    } else {
        $TimeTSSec = $Otp_A_ITar['t_end'] - $CFU_Time;
 $Op->generateSpecialAbilityPool();
 // Meta-phase Set Specs
 if ($Op->SetSpecID) {
     $Op->SetSpec->metaphase();
 }
 // Pilot Hypermode Effects
 $Op->applyEXAM();
 $Op->applySEEDMode();
 $Op->deterSpecRequirements();
 // MS Effects
 //Upper-case Mob Effects
 $Op->applyMSMobU();
 //Upper-case Tar Effect
 $Op->applyMSTarU();
 //Upper-case Def Specs
 $Op->applyMSDefU();
 //
 // Phase End
 //
 // Process Equipment Information
 echo "<script language=\"JavaScript\">";
 layerScript('wepinfo');
 $Eq_Listing = array('A' => 'wepa', 'B' => 'wepb', 'C' => 'wepc', 'D' => 'eqwep', 'E' => 'p_equip');
 $Wep_Sym = array('A' => '', 'B' => '', 'C' => '', 'D' => '', 'E' => '');
 $i = 0;
 $ms_js = '';
 foreach ($Eq_Listing as $I => $V) {
     $displayXp = '±0%';
     $W_Inf = '';
     if ($Op->Player[$V] && $Op->Player[$V] != '0<!>0') {
         if ($Op->Eq[$I]['exp'] > 0) {