diff --git a/hwe/process_war.php b/hwe/process_war.php index c087a352..9af1ba33 100644 --- a/hwe/process_war.php +++ b/hwe/process_war.php @@ -222,7 +222,10 @@ function extractBattleOrder(WarUnit $defender, WarUnit $attacker) $totalStat = ($realStat + $fullStat) / 2; $totalCrew = $general->getVar('crew') / 1000000 * (($general->getVar('train') * $general->getVar('atmos')) ** 1.5); - return $totalStat + $totalCrew / 100; + $value = $totalStat + $totalCrew / 100; + $value = $general->onCalcStat($general, 'battleOrder', $value, ['attacker' => $attacker]); + $value = $attacker->getGeneral()->onCalcOpposeStat($general, 'battleOrder', ['attacker' => $attacker]); + return $value; } function processWar_NG(