mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 10:00:02 +01:00
Prevent invalid BGJoinAction
This commit is contained in:
parent
297f11d3e5
commit
16ef20cd3e
@ -411,8 +411,8 @@ bool BGJoinAction::isUseful()
|
||||
|
||||
bool BGJoinAction::JoinQueue(uint32 type)
|
||||
{
|
||||
// ignore if player is already in BG
|
||||
if (bot->InBattleground())
|
||||
// ignore if player is already in BG, is logging out, or already being teleport
|
||||
if (!bot || (!bot->IsInWorld() && !bot->IsBeingTeleported()) || bot->InBattleground())
|
||||
return false;
|
||||
|
||||
// get BG TypeId
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user