mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Port fixes until b4094bf - flying, mount animations, bot attack range, free food option
This commit is contained in:
@@ -698,7 +698,7 @@ void PlayerbotAI::ChangeEngine(BotState type)
|
||||
|
||||
void PlayerbotAI::DoNextAction(bool min)
|
||||
{
|
||||
if (bot->IsBeingTeleported() || (GetMaster() && GetMaster()->IsBeingTeleported()))
|
||||
if (!bot->IsInWorld() || bot->IsBeingTeleported() || (GetMaster() && GetMaster()->IsBeingTeleported()))
|
||||
{
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
return;
|
||||
@@ -814,6 +814,9 @@ void PlayerbotAI::DoNextAction(bool min)
|
||||
// same BG
|
||||
if (bot->InBattleground() && bot->GetBattleground()->GetBgTypeID() == BATTLEGROUND_AV && !GET_PLAYERBOT_AI(member) && member->InBattleground() && bot->GetMapId() == member->GetMapId())
|
||||
{
|
||||
// TODO disable move to objective if have master in bg
|
||||
continue;
|
||||
|
||||
if (!group->SameSubGroup(bot, member))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user