bot revive

This commit is contained in:
Yunfan Li
2023-10-08 20:11:00 +08:00
parent 4e56008b61
commit fa5545ee71

View File

@@ -173,7 +173,7 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
if (summoner->IsWithinLOS(x, y, z)) if (summoner->IsWithinLOS(x, y, z))
{ {
if (sPlayerbotAIConfig->botReviveWhenSummon && bot->isDead() && botAI->GetMaster()->IsAlive()) if (sPlayerbotAIConfig->botReviveWhenSummon && bot->isDead())
{ {
bot->ResurrectPlayer(1.0f, false); bot->ResurrectPlayer(1.0f, false);
bot->DurabilityRepairAll(false, 1.0f, false); bot->DurabilityRepairAll(false, 1.0f, false);