From fa89bae7d9493a8a0117076301bf8b76e939bd62 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 21 Dec 2024 04:03:05 +0000 Subject: [PATCH] =?UTF-8?q?game:=20NPC=20=EC=9E=A5=EC=88=98=20=EB=8A=A5?= =?UTF-8?q?=EB=A0=A5=EC=B9=98=20=EC=B4=88=EA=B8=B0=ED=99=94=20=EB=B6=88?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/InheritAction/ResetStat.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hwe/sammo/API/InheritAction/ResetStat.php b/hwe/sammo/API/InheritAction/ResetStat.php index 72917075..e0eae16b 100644 --- a/hwe/sammo/API/InheritAction/ResetStat.php +++ b/hwe/sammo/API/InheritAction/ResetStat.php @@ -94,6 +94,10 @@ class ResetStat extends \sammo\BaseAPI } $userLogger = new UserLogger($userID); + if($general->getNPCType() != 0){ + return 'NPC는 능력치 초기화를 할 수 없습니다.'; + } + $db = DB::db(); $gameStor = KVStorage::getStorage($db, 'game_env');