From 93e141be17f65053f00fcbffaab987bf84f2d837 Mon Sep 17 00:00:00 2001 From: ineedbots Date: Mon, 13 Sep 2021 16:35:21 -0600 Subject: [PATCH] Fix error when not using matchrules --- raw/maps/mp/bots/_bot_script.gsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raw/maps/mp/bots/_bot_script.gsc b/raw/maps/mp/bots/_bot_script.gsc index e15b328..a2d914b 100644 --- a/raw/maps/mp/bots/_bot_script.gsc +++ b/raw/maps/mp/bots/_bot_script.gsc @@ -1230,7 +1230,7 @@ chooseRandomClass( ) class = ""; rank = self maps\mp\gametypes\_rank::getRankForXp( self getPlayerData( "experience" ) ) + 1; - if ( rank < 4 || ( randomInt( 100 ) < 2 && !reasonable ) || !level.matchRules_allowCustomClasses ) + if ( rank < 4 || ( randomInt( 100 ) < 2 && !reasonable ) || ( isUsingMatchRulesData() && !level.matchRules_allowCustomClasses ) ) { while ( class == "" ) {