Skip to content

Commit

Permalink
Reset strategies after setting master on invite accept
Browse files Browse the repository at this point in the history
  • Loading branch information
celguar committed Jan 25, 2024
1 parent f905406 commit 4eadecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playerbot/strategy/actions/AcceptInvitationAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ namespace ai
if (!bot->GetGroup() || !bot->GetGroup()->IsMember(inviter->GetObjectGuid()))
return false;

ai->ResetStrategies();

if (sRandomPlayerbotMgr.IsFreeBot(bot))
{
ai->SetMaster(inviter);
ai->ChangeStrategy("+follow", BotState::BOT_STATE_NON_COMBAT);
}

ai->ResetStrategies();

ai->ChangeStrategy("-lfg,-bg", BotState::BOT_STATE_NON_COMBAT);
ai->Reset();
Expand Down

0 comments on commit 4eadecd

Please sign in to comment.