From f0cc22d9d849c6f16fe6f5aaba32e151491dc8d9 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 8 Jun 2024 18:48:46 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20NoChief=20=EC=B2=98=EB=A6=AC=20=EB=B6=80?= =?UTF-8?q?=EC=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_myBossInfo.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hwe/j_myBossInfo.php b/hwe/j_myBossInfo.php index dae8f910..d35dd757 100644 --- a/hwe/j_myBossInfo.php +++ b/hwe/j_myBossInfo.php @@ -85,6 +85,10 @@ function do수뇌임명(General $general, int $targetOfficerLevel): ?string $generalID = $general->getID(); $nationID = $general->getNationID(); + if($general->hasPenalty(PenaltyKey::NoChief)){ + return '수뇌가 될 수 없는 상태입니다.'; + } + $db = DB::db(); [$chiefSet, $nationLevel] = $db->queryFirstList('SELECT chief_set,level FROM nation WHERE nation = %i', $nationID);