mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
[Battlegrounds] fix bot self respawn in battleground
This commit is contained in:
parent
e97c0350aa
commit
e77e2a6785
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user