diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-05-18 20:22:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-05-18 20:22:08 -0300 |
commit | e2b3ec1deed710ce77d466b75d26748b1eac5979 (patch) | |
tree | 9b4f51d7cb5ca50e4cab7200ee3a3ad2776193ac /npc | |
parent | d1b33662cfb02103f91eb153cb3d6658488657bc (diff) | |
download | serverdata-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.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/026-6/ctrl.c | 2 |
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); |