[Battlegrounds] fix bot self respawn in battleground

This commit is contained in:
Fuzz
2024-08-09 21:17:44 +10:00
parent e97c0350aa
commit e77e2a6785

View File

@@ -125,7 +125,7 @@ bool AutoReleaseSpiritAction::Execute(Event event)
mm.Clear();
mm.MovePoint(bot->GetMapId(), unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ(), true);
}
else
else if (!botAI->IsRealPlayer()) // below doesnt work properly on realplayer, but its also not needed
{
bg_gossip_time = time(NULL);
WorldPacket packet(CMSG_GOSSIP_HELLO);
@@ -133,7 +133,7 @@ bool AutoReleaseSpiritAction::Execute(Event event)
bot->GetSession()->HandleGossipHelloOpcode(packet);
}
}
botAI->SetNextCheckDelay(1000);
return true;
}