[Configuration] Make more options for ReviveBotWhenSummoned

This commit is contained in:
Yunfan Li
2024-07-24 21:13:32 +08:00
parent ed80744891
commit 1f7ab72b04
4 changed files with 6 additions and 5 deletions

View File

@@ -206,7 +206,8 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
return false;
}
if (bot->isDead() && sPlayerbotAIConfig->reviveBotWhenSummoned)
bool revive = sPlayerbotAIConfig->reviveBotWhenSummoned == 2 || (sPlayerbotAIConfig->reviveBotWhenSummoned == 1 && !master->IsInCombat());
if (bot->isDead() && revive)
{
bot->ResurrectPlayer(1.0f, false);
botAI->TellMasterNoFacing("I live, again!");