[Bots] Fix bots learning spells on level (#3744)

Previously bots would need to be zoned or camped/spawned to begin using new spells for their level.
This commit is contained in:
nytmyr 2023-12-07 20:19:21 -06:00 committed by GitHub
parent 77045f558e
commit 16dc210cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3641,6 +3641,7 @@ void Bot::LevelBotWithClient(Client* client, uint8 level, bool sendlvlapp) {
bot->SendLevelAppearance();
// modified from Client::SetLevel()
bot->SendAppearancePacket(AT_WhoLevel, level, true, true); // who level change
bot->AI_AddBotSpells(bot->GetBotSpellID());
}
}