more configurations

This commit is contained in:
Yunfan Li
2023-10-07 22:12:02 +08:00
parent 5b89437929
commit 4e56008b61
8 changed files with 77 additions and 26 deletions

View File

@@ -7,6 +7,7 @@
#include "CellImpl.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "PlayerbotAIConfig.h"
#include "Playerbots.h"
bool UseMeetingStoneAction::Execute(Event event)
@@ -172,7 +173,7 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
if (summoner->IsWithinLOS(x, y, z))
{
if (bot->isDead() && botAI->GetMaster()->IsAlive())
if (sPlayerbotAIConfig->botReviveWhenSummon && bot->isDead() && botAI->GetMaster()->IsAlive())
{
bot->ResurrectPlayer(1.0f, false);
bot->DurabilityRepairAll(false, 1.0f, false);