mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Compare commits
2 Commits
43f496d372
...
b37d504c99
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b37d504c99 | ||
|
|
d81355460f |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user