Wrap bot setting loading for clients in bots enabled rule

This commit is contained in:
nytmyr
2025-01-26 21:56:25 -06:00
parent 975af5ee9c
commit 3dfa099718
+4 -3
View File
@@ -1510,9 +1510,10 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
LogError("Error loading AA points for [{}]", GetName());
}
LoadDefaultBotSettings();
database.botdb.LoadBotSettings(this);
if (RuleB(Bots, Enabled)) {
LoadDefaultBotSettings();
database.botdb.LoadBotSettings(this);
}
if (SPDAT_RECORDS > 0) {
for (uint32 z = 0; z < EQ::spells::SPELL_GEM_COUNT; z++) {