mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Battlegrounds] fix bot self respawn in battleground
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user