mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
renamed function name
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -514,7 +514,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
|
||||
|
||||
if (!groupValid)
|
||||
{
|
||||
botAI->RemoveFromGroup();
|
||||
botAI->LeaveOrDisbandGroup();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -86,7 +86,7 @@ bool LeaveGroupAction::Leave(Player* player)
|
||||
bool shouldStay = randomBot && bot->GetGroup() && player == bot;
|
||||
if (!shouldStay)
|
||||
{
|
||||
botAI->RemoveFromGroup();
|
||||
botAI->LeaveOrDisbandGroup();
|
||||
}
|
||||
|
||||
if (randomBot)
|
||||
|
||||
Reference in New Issue
Block a user