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)
|
if (!victim)
|
||||||
return;
|
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(GetPackGUID());
|
||||||
data.append(victim->GetPackGUID()); // can be 0x00...
|
data.append(victim->GetPackGUID()); // can be 0x00...
|
||||||
data << uint32(victim->GetTypeId() == TYPEID_PLAYER ? 1 : 0);
|
data << uint32(0); // can be 0x1
|
||||||
SendMessageToSet(&data, true);
|
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());
|
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