mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Fix some case of bots AFK
This commit is contained in:
parent
6fe225f109
commit
623fcb847c
@ -840,7 +840,7 @@ void PlayerbotAI::DoNextAction(bool min)
|
|||||||
|
|
||||||
if (minimal)
|
if (minimal)
|
||||||
{
|
{
|
||||||
if (!bot->isAFK() && !bot->InBattleground() && (!HasRealPlayerMaster() || (GetMaster() && GetMaster()->isAFK())))
|
if (!bot->isAFK() && !bot->InBattleground() && !HasRealPlayerMaster())
|
||||||
bot->ToggleAFK();
|
bot->ToggleAFK();
|
||||||
|
|
||||||
SetNextCheckDelay(sPlayerbotAIConfig->passiveDelay);
|
SetNextCheckDelay(sPlayerbotAIConfig->passiveDelay);
|
||||||
@ -2630,7 +2630,8 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (group->IsLeader(member->GetGUID()))
|
if (group->IsLeader(member->GetGUID()))
|
||||||
return memberBotAI->AllowActivity(PARTY_ACTIVITY);
|
if (!memberBotAI->AllowActivity(PARTY_ACTIVITY))
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user