summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-05-18 20:22:08 -0300
committerJesusaves <cpntb1@ymail.com>2024-05-18 20:22:08 -0300
commite2b3ec1deed710ce77d466b75d26748b1eac5979 (patch)
tree9b4f51d7cb5ca50e4cab7200ee3a3ad2776193ac
parentd1b33662cfb02103f91eb153cb3d6658488657bc (diff)
downloadserverdata-e2b3ec1deed710ce77d466b75d26748b1eac5979.tar.gz
serverdata-e2b3ec1deed710ce77d466b75d26748b1eac5979.tar.bz2
serverdata-e2b3ec1deed710ce77d466b75d26748b1eac5979.tar.xz
serverdata-e2b3ec1deed710ce77d466b75d26748b1eac5979.zip
Safeguard: Do not allow the challenge to be initialized with a zero level.
-rw-r--r--npc/026-6/ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/026-6/ctrl.c b/npc/026-6/ctrl.c
index edb6331ee..50d032546 100644
--- a/npc/026-6/ctrl.c
+++ b/npc/026-6/ctrl.c
@@ -79,7 +79,7 @@ OnTouch:
if ($@MK_CHALLENGE) end;
if ($GAME_STORYLINE >= 5 && !@menuint) cwarp "026-6", 22, 41;
// Begin the challenge! It's SHOWDOWN TIME!
- $@MK_CHALLENGE=@menuint;
+ $@MK_CHALLENGE=max(1, @menuint);
kamibroadcast(strcharinfo(0)+" has CHALLENGED the MONSTER KING to a SHOWDOWN!", "WORLD HEART");
sleep(2500);
mapannounce("026-6", "WORLD HEART : The teleporter is now enabled... Get to positions!", bc_map|bc_npc);