Skip to content

Commit

Permalink
-Always bot fix: Players logging into bots now are able to open up a …
Browse files Browse the repository at this point in the history
…gossip menu with npcs.
  • Loading branch information
mostlikely4r committed Nov 6, 2024
1 parent 8a8b15d commit 1792257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playerbot/PlayerbotMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,10 @@ void PlayerbotMgr::OnPlayerLogin(Player* player)

if(sPlayerbotAIConfig.selfBotLevel > 2 || sPlayerbotAIConfig.IsFreeAltBot(player) || sRandomPlayerbotMgr.GetValue(master->GetObjectGuid().GetCounter(), "selfbot"))
HandlePlayerbotCommand("self", player);
if (player->GetSession() != player->GetPlayerMenu()->GetGossipMenu().GetMenuSession())
{
player->GetPlayerMenu()->GetGossipMenu() = GossipMenu(player->GetSession());
}

if (!sPlayerbotAIConfig.botAutologin)
return;
Expand Down

0 comments on commit 1792257

Please sign in to comment.