mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +00:00
enable battleground
This commit is contained in:
@@ -881,7 +881,7 @@ bool RandomPlayerbotMgr::ProcessBot(Player* player)
|
||||
if (!GetEventValue(bot, "dead"))
|
||||
{
|
||||
uint32 randomTime = urand(sPlayerbotAIConfig->minRandomBotReviveTime, sPlayerbotAIConfig->maxRandomBotReviveTime);
|
||||
LOG_INFO("playerbots", "Mark bot {} as dead, will be revived in {}s.", player->GetName().c_str(), randomTime);
|
||||
// LOG_INFO("playerbots", "Mark bot {} as dead, will be revived in {}s.", player->GetName().c_str(), randomTime);
|
||||
SetEventValue(bot, "dead", 1, sPlayerbotAIConfig->maxRandomBotInWorldTime);
|
||||
SetEventValue(bot, "revive", 1, randomTime);
|
||||
return false;
|
||||
@@ -963,7 +963,7 @@ void RandomPlayerbotMgr::Revive(Player* player)
|
||||
{
|
||||
uint32 bot = player->GetGUID().GetCounter();
|
||||
|
||||
LOG_INFO("playerbots", "Bot {} revived", player->GetName().c_str());
|
||||
// LOG_INFO("playerbots", "Bot {} revived", player->GetName().c_str());
|
||||
SetEventValue(bot, "dead", 0, 0);
|
||||
SetEventValue(bot, "revive", 0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user