diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 8e3a8a94..a155d0fc 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -1128,7 +1128,7 @@ PlayerbotAI* PlayerbotsMgr::GetPlayerbotAI(Player* player) PlayerbotMgr* PlayerbotsMgr::GetPlayerbotMgr(Player* player) { - if (!player || (!player->IsInWorld() && !player->IsBeingTeleported())) + if (!(sPlayerbotAIConfig->enabled) || !player || (!player->IsInWorld() && !player->IsBeingTeleported())) { return nullptr; }