From dae5f65baaa86c54fa369552f0a2180ab88a089a Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 23 Jan 2025 17:08:50 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8A=B9=EC=84=B1=EC=B4=88=ED=86=A0?= =?UTF-8?q?=ED=99=94=EC=8B=9C=EC=97=90=EB=A7=8C=20did=5F=ED=8A=B9=EC=84=B1?= =?UTF-8?q?=EC=B4=88=ED=86=A0=ED=99=94=20=EC=A6=9D=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/Nation/che_초토화.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Command/Nation/che_초토화.php b/hwe/sammo/Command/Nation/che_초토화.php index 39688b54..1b7b4206 100644 --- a/hwe/sammo/Command/Nation/che_초토화.php +++ b/hwe/sammo/Command/Nation/che_초토화.php @@ -159,9 +159,11 @@ class che_초토화 extends Command\NationCommand{ $josaYiNation = JosaUtil::pick($nationName, '이'); $amount = $this->calcReturnAmount($destCity); - $aux = $this->nation['aux']; - $aux[NationAuxKey::did_특성초토화->value] = $aux[NationAuxKey::did_특성초토화->value] ?? 0 + 1; + + if($destCity['level'] >= 8){ + $aux[NationAuxKey::did_특성초토화->value] = $aux[NationAuxKey::did_특성초토화->value] ?? 0 + 1; + } $db->update('general', [ 'experience'=>$db->sqleval('experience * 0.9')