From 34894a27d32efa637b1ced240b37ec344f5fe4fe Mon Sep 17 00:00:00 2001 From: Jesusalva Jesusalva Date: Tue, 20 Sep 2022 04:15:25 +0000 Subject: Applied 1 suggestions from the MR body. --- npc/003-10/kreist.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/003-10/kreist.txt b/npc/003-10/kreist.txt index 21fc18745..be3ed7e0c 100644 --- a/npc/003-10/kreist.txt +++ b/npc/003-10/kreist.txt @@ -171,7 +171,7 @@ function script Guardhouse_RandQuestCheck { getq2(General_MobHunting1) == .@mobId) { .@q3=getq3(General_MobHunting1); .@killamount=get_byte(.@q3, 1); - set_byte(.@q3, 1, .@killamount+1); + set_byte(.@q3, 1, min(255, .@killamount+1)); setq3 General_MobHunting1, .@q3; if (!(.@killamount % 5)) dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); -- cgit v1.2.3-60-g2f50