Add option

This commit is contained in:
Chromie-WoW
2024-07-10 15:13:22 -07:00
parent 9d4c478b21
commit 36c84d55f2
4 changed files with 10 additions and 2 deletions

View File

@@ -176,6 +176,9 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
if (summoner->IsWithinLOS(x, y, z))
{
if (sPlayerbotAIConfig->botRepairWhenSummon) // .conf option to repair bot gear when summoned 0 = off, 1 = on
bot->DurabilityRepairAll(false, 1.0f, false);
if (sPlayerbotAIConfig->botReviveWhenSummon < 2)
{
if (master->IsInCombat())
@@ -200,7 +203,6 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
if (sPlayerbotAIConfig->botReviveWhenSummon > 0 && bot->isDead())
{
bot->ResurrectPlayer(1.0f, false);
bot->DurabilityRepairAll(false, 1.0f, false);
botAI->TellMasterNoFacing("I live, again!");
}