Core/Misc: updated a bunch of packets to packet class

This commit is contained in:
Ovahlord committed 2020-10-21 12:04:13 +02:00
1 parent 0fe70b3518
commit 90e5e85afd
23 files changed
+413 -145

No files matched your search

+2 -9
View File
@@ -18,6 +18,7 @@
#include "WorldSession.h"
#include "Common.h"
#include "CreatureAI.h"
#include "CombatPackets.h"
#include "DBCStores.h"
#include "Log.h"
#include "ObjectAccessor.h"
@@ -88,13 +89,5 @@ void WorldSession::HandleSetSheathedOpcode(WorldPacket& recvData)
void WorldSession::SendAttackStop(Unit const* enemy)
{
WorldPacket data(SMSG_ATTACKSTOP, (8+8+4)); // we guess size
data << GetPlayer()->GetPackGUID();
if (enemy)
data << enemy->GetPackGUID();
else
data << uint8(0);
data << uint32(0); // unk, can be 1 also
SendPacket(&data);
SendPacket(WorldPackets::Combat::SAttackStop(GetPlayer(), enemy).Write());
}