chore(value): attackers value

This commit is contained in:
Yunfan Li
2023-06-13 01:02:37 +08:00
parent c9367debeb
commit 209fdbd6b5
4 changed files with 30 additions and 4 deletions

View File

@@ -1670,6 +1670,9 @@ bool RandomPlayerbotMgr::HandlePlayerbotConsoleCommand(ChatHandler* handler, cha
uint32 botId = fields[0].Get<uint32>();
ObjectGuid guid = ObjectGuid::Create<HighGuid::Player>(botId);
if (!sRandomPlayerbotMgr->IsRandomBot(guid.GetCounter())) {
continue;
}
Player* bot = ObjectAccessor::FindPlayer(guid);
if (!bot)
continue;