diff --git a/src/Playerbots.cpp b/src/Playerbots.cpp index ca92711c..42acba60 100644 --- a/src/Playerbots.cpp +++ b/src/Playerbots.cpp @@ -227,10 +227,10 @@ public: Player* leader = group->GetLeader(); if (leader != player) { - if (!player->GetSession()->IsBot()) + if (!leader->GetSession()->IsBot()) return; - if (!sRandomPlayerbotMgr->IsRandomBot(player)) + if (!sRandomPlayerbotMgr->IsRandomBot(leader)) return; } }