diff --git a/webapp/services/BattleBoxService.php b/webapp/services/BattleBoxService.php index 8fe31003..9a03acc0 100644 --- a/webapp/services/BattleBoxService.php +++ b/webapp/services/BattleBoxService.php @@ -49,8 +49,8 @@ class BattleBoxService { if ($currPhase < 1 || $currPhase > 2) { return 0; } - $minNum = $maxLst0[$currPhase]; - $maxNum = $maxLst1[$currPhase]; + $minNum = $maxLst0[$currPhase - 1]; + $maxNum = $maxLst1[$currPhase - 1]; error_log(json_encode(array( 'mapNodeMeta' => $mapModeMeta, @@ -72,6 +72,7 @@ class BattleBoxService { 'yesterDayDropLastTime' => $yesterDayDropLastTime, 'yesterDayDropTotal' => $yesterDayDropTotal, 'yesterDayAllocNum' => $yesterDayAllocNum, + 'maxNum' => $maxNum, ))); if ($yesterDayAllocNum <= 0) { $allocableNum = $maxNum;