mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Fix Bug Bot blocked in PT
After leaving PT, the Bot was stuck in a Group, stopped and without receiving invites from other players. Ideally, use the LeaveGroupOnLogout.Enabled = 1 setting in Worldserver.conf so that after the player leaves the game, the Bots are not stuck in Raid.
This commit is contained in:
parent
0dc7a844ea
commit
037258fb1a
@ -30,6 +30,8 @@ bool PartyCommandAction::Execute(Event event)
|
|||||||
Player* master = GetMaster();
|
Player* master = GetMaster();
|
||||||
if (master && member == master->GetName())
|
if (master && member == master->GetName())
|
||||||
return Leave(bot);
|
return Leave(bot);
|
||||||
|
|
||||||
|
botAI->Reset();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -62,6 +64,8 @@ bool UninviteAction::Execute(Event event)
|
|||||||
if (bot->GetGUID() == guid)
|
if (bot->GetGUID() == guid)
|
||||||
return Leave(bot);
|
return Leave(bot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
botAI->Reset();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -160,6 +164,8 @@ bool LeaveFarAwayAction::isUseful()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
botAI->Reset();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user