diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 63f16a0f..2793e17f 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -648,7 +648,7 @@ function processAI($no) { if($npcGenID === null && $userGenID === null){ $genID = 0; } - else if($npcGenID === null || $userGenValue < $npcGenValue * 3){ + else if($npcGenID === null || ($userGenValue !== null && $userGenValue < $npcGenValue * 3)){ $genID = $userGenID; } else{