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