mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Compare commits
6 Commits
hermensbas
...
b37d504c99
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b37d504c99 | ||
|
|
d81355460f | ||
|
|
43f496d372 | ||
|
|
b6124e2727 | ||
|
|
8785a9a726 | ||
|
|
a43dda6444 |
@@ -718,7 +718,6 @@ Logger.spells.scripts=2,Console Errors
|
||||
Logger.playerbots=5,Console Playerbots
|
||||
#Logger.achievement=4,Console Server
|
||||
#Logger.addon=4,Console Server
|
||||
#Logger.ahbot=4,Console Server
|
||||
#Logger.auctionHouse=4,Console Server
|
||||
#Logger.autobroadcast=4, Console Server
|
||||
#Logger.bg.arena=4,Console Server
|
||||
|
||||
@@ -482,6 +482,8 @@ void WorldSession::HandlePetitionSignOpcode(WorldPacket& recvData)
|
||||
break;
|
||||
}
|
||||
|
||||
sScriptMgr->OnPlayerbotCheckPetitionAccount(_player, found);
|
||||
|
||||
if (found)
|
||||
{
|
||||
WorldPacket data(SMSG_PETITION_SIGN_RESULTS, (8 + 8 + 4));
|
||||
|
||||
@@ -1722,6 +1722,13 @@ void Map::SendObjectUpdates()
|
||||
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
|
||||
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
|
||||
{
|
||||
if (!sScriptMgr->OnPlayerbotCheckUpdatesToSend(iter->first))
|
||||
{
|
||||
iter->second.Clear();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
iter->second.BuildPacket(packet);
|
||||
iter->first->SendDirectMessage(&packet);
|
||||
packet.clear(); // clean the string
|
||||
|
||||
@@ -389,10 +389,10 @@ void FlightPathMovementGenerator::LoadPath(Player* player)
|
||||
LOG_ERROR("movement.flightpath", "Failed to build correct path for player: {}. Current node: {}, max nodes: {}. Paths: {}. Player pos: {}.", player->GetGUID().ToString(), GetCurrentNode(), i_path.size(), paths, player->GetPosition().ToString());
|
||||
|
||||
// Lets choose the second last element so that a player would still have some flight.
|
||||
if (int(i_path.size()) - 2 >= 0)
|
||||
if (i_path.size() >= 2)
|
||||
i_currentNode = uint32(i_path.size() - 2);
|
||||
else
|
||||
i_currentNode = uint32(i_path.size() - 1);
|
||||
i_currentNode = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user