From e77e2a67857db584baf5ad03019fdf3b9fcf3479 Mon Sep 17 00:00:00 2001 From: Fuzz Date: Fri, 9 Aug 2024 21:17:44 +1000 Subject: [PATCH] [Battlegrounds] fix bot self respawn in battleground --- src/strategy/actions/ReleaseSpiritAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/actions/ReleaseSpiritAction.cpp b/src/strategy/actions/ReleaseSpiritAction.cpp index 0d1ad8b6..382464e4 100644 --- a/src/strategy/actions/ReleaseSpiritAction.cpp +++ b/src/strategy/actions/ReleaseSpiritAction.cpp @@ -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; }