diff --git a/hwe/func_process.php b/hwe/func_process.php index e08616cd..9d384eb4 100644 --- a/hwe/func_process.php +++ b/hwe/func_process.php @@ -2565,9 +2565,18 @@ function process_58(&$general) { $cutDex = Util::toInt($fromOrigDex * 0.3); $fromNewDex = $fromOrigDex - $cutDex; + + if($fromDexIdx == $toDexIdx){ + $toOrigDex = $fromNewDex; + } + $addDex = Util::toInt($cutDex * 2 / 3); $toNewDex = $toOrigDex + $addDex; + if($fromDexIdx == $toDexIdx){ + $fromNewDex = $toNewDex; + } + $exp = 10; $exp = CharExperience($exp, $general['personal']);