This commit is contained in:
aozhiwei 2024-10-08 15:20:56 +08:00
parent 22e24628b4
commit 41ab453c08

View File

@ -22,7 +22,7 @@ class BattleBoxService {
$alreadyAllocNum = self::getDailyPhaseAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds());
if ($allocableNum > 0) {
$lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');
if (!$allocableNum <= 0 || empty($lstVal) || count($lstVal) < 2) {
if (!($allocableNum <= 0 || empty($lstVal) || count($lstVal) < 2)) {
$rnd = rand($lstVal[0], $lstVal[1]);
if ($rnd > 0) {
$boxNum = min($rnd, $allocableNum);