fix: 수동 은퇴 시 명예의전당에 등록되지 않는 버그

This commit is contained in:
2022-09-27 10:00:44 +09:00
parent 40fc2f8bbf
commit 45afb1c090
+6
View File
@@ -10,6 +10,7 @@ use \sammo\{
use \sammo\Constraint\ConstraintHelper;
use function sammo\tryUniqueItemLottery;
use function sammo\CheckHall;
class che_은퇴 extends Command\GeneralCommand{
static protected $actionName = '은퇴';
@@ -59,12 +60,17 @@ class che_은퇴 extends Command\GeneralCommand{
}
$db = DB::db();
$env = $this->env;
$general = $this->generalObj;
$date = $general->getTurnTime($general::TURNTIME_HM);
$logger = $general->getLogger();
if ($env['isunited'] == 0) {
CheckHall($general->getID());
}
$general->rebirth();
$logger->pushGeneralActionLog("은퇴하였습니다. <1>$date</>");