forked from devsam/core
fix: NoChief 처리 부실
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user