mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Revert "Core/Packets: Make SMSG_ATTACKSTOP report back if the previous victim was a player or a pet/unit (unclear what its used for clientside)"
This reverts commit ecc7fe24bb.
This commit is contained in:
@@ -2242,10 +2242,10 @@ void Unit::SendMeleeAttackStop(Unit* victim)
|
||||
if (!victim)
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_ATTACKSTOP, (8+8+4)); // we guess size
|
||||
WorldPacket data(SMSG_ATTACKSTOP, (8+8+4)); // we guess size
|
||||
data.append(GetPackGUID());
|
||||
data.append(victim->GetPackGUID()); // can be 0x00...
|
||||
data << uint32(victim->GetTypeId() == TYPEID_PLAYER ? 1 : 0);
|
||||
data << uint32(0); // can be 0x1
|
||||
SendMessageToSet(&data, true);
|
||||
sLog->outDetail("%s %u stopped attacking %s %u", (GetTypeId() == TYPEID_PLAYER ? "player" : "creature"), GetGUIDLow(), (victim->GetTypeId() == TYPEID_PLAYER ? "player" : "creature"), victim->GetGUIDLow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user