renamed function name

This commit is contained in:
bash
2025-10-06 21:07:43 +02:00
parent 780f6d60e0
commit cf4f0f6dc7
5 changed files with 10 additions and 10 deletions

View File

@@ -378,7 +378,7 @@ void PlayerbotAI::UpdateAIGroupMembership()
PlayerbotAI* leaderAI = GET_PLAYERBOT_AI(leader);
if (leaderAI && !leaderAI->IsRealPlayer())
{
RemoveFromGroup();
LeaveOrDisbandGroup();
}
}
}
@@ -402,7 +402,7 @@ void PlayerbotAI::UpdateAIGroupMembership()
}
if (!hasRealPlayer)
{
RemoveFromGroup();
LeaveOrDisbandGroup();
}
}
}
@@ -785,7 +785,7 @@ void PlayerbotAI::Reset(bool full)
}
}
void PlayerbotAI::RemoveFromGroup()
void PlayerbotAI::LeaveOrDisbandGroup()
{
if (!bot || !bot->GetGroup() || IsRealPlayer())
return;

View File

@@ -415,7 +415,7 @@ public:
void ResetStrategies(bool load = false);
void ReInitCurrentEngine();
void Reset(bool full = false);
void RemoveFromGroup();
void LeaveOrDisbandGroup();
static bool IsTank(Player* player, bool bySpec = false);
static bool IsHeal(Player* player, bool bySpec = false);
static bool IsDps(Player* player, bool bySpec = false);

View File

@@ -514,7 +514,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
if (!groupValid)
{
botAI->RemoveFromGroup();
botAI->LeaveOrDisbandGroup();
}
}

View File

@@ -1559,7 +1559,7 @@ bool RandomPlayerbotMgr::ProcessBot(Player* bot)
Group* group = bot->GetGroup();
if (group && !group->isLFGGroup() && IsRandomBot(group->GetLeader()))
{
botAI->RemoveFromGroup();
botAI->LeaveOrDisbandGroup();
LOG_INFO("playerbots", "Bot {} remove from group since leader is random bot.", bot->GetName().c_str());
}
@@ -2463,7 +2463,7 @@ void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
botAI->Reset(true);
if (bot->GetGroup())
botAI->RemoveFromGroup();
botAI->LeaveOrDisbandGroup();
if (pmo)
pmo->finish();
@@ -2504,7 +2504,7 @@ void RandomPlayerbotMgr::RandomizeMin(Player* bot)
botAI->Reset(true);
if (bot->GetGroup())
botAI->RemoveFromGroup();
botAI->LeaveOrDisbandGroup();
if (pmo)
pmo->finish();
@@ -2586,7 +2586,7 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
bot->SetMoney(money + 500 * sqrt(urand(1, bot->GetLevel() * 5)));
if (bot->GetGroup())
botAI->RemoveFromGroup();
botAI->LeaveOrDisbandGroup();
if (pmo)
pmo->finish();

View File

@@ -86,7 +86,7 @@ bool LeaveGroupAction::Leave(Player* player)
bool shouldStay = randomBot && bot->GetGroup() && player == bot;
if (!shouldStay)
{
botAI->RemoveFromGroup();
botAI->LeaveOrDisbandGroup();
}
if (randomBot)