diff --git a/zone/entity.cpp b/zone/entity.cpp index 624a678e8..fe3cdda1b 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -5175,7 +5175,8 @@ std::vector EntityList::GetBotListByCharacterID(uint32 character_id, uint for (const auto& b : bot_list) { if ( b->GetOwner() && - b->GetBotOwnerCharacterID() == character_id + b->GetBotOwnerCharacterID() == character_id && + (!class_id || b->GetClass() == class_id) ) { client_bot_list.push_back(b); }