random bot teleport

This commit is contained in:
Yunfan Li
2023-07-31 16:53:48 +08:00
parent dce11e8781
commit 6b7bf8ade7
4 changed files with 5 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ bool FindCorpseAction::Execute(Event event)
LOG_DEBUG("playerbots", "Bot {} {}:{} <{}>: died too many times and was sent to an inn",
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
context->GetValue<uint32>("death count")->Set(0);
sRandomPlayerbotMgr->RandomTeleportForRpg(bot);
sRandomPlayerbotMgr->RandomTeleportForLevel(bot);
return true;
}
}