fix(Core): Further adjust packet structure for attack stop opcode. (#19438)
* Init. * Fixy fix.
This commit is contained in:
@@ -3054,9 +3054,8 @@ void Unit::SendMeleeAttackStop(Unit* victim)
|
|||||||
|
|
||||||
if (victim)
|
if (victim)
|
||||||
{
|
{
|
||||||
uint8 nowDead = victim->isDead();
|
|
||||||
data << victim->GetPackGUID();
|
data << victim->GetPackGUID();
|
||||||
data << nowDead;
|
data << (uint32)victim->isDead();
|
||||||
}
|
}
|
||||||
SendMessageToSet(&data, true);
|
SendMessageToSet(&data, true);
|
||||||
LOG_DEBUG("entities.unit", "WORLD: Sent SMSG_ATTACKSTOP");
|
LOG_DEBUG("entities.unit", "WORLD: Sent SMSG_ATTACKSTOP");
|
||||||
|
|||||||
@@ -89,9 +89,8 @@ void WorldSession::SendAttackStop(Unit const* enemy)
|
|||||||
|
|
||||||
if (enemy)
|
if (enemy)
|
||||||
{
|
{
|
||||||
uint8 nowDead = enemy->isDead();
|
|
||||||
data << enemy->GetPackGUID(); // must be packed guid
|
data << enemy->GetPackGUID(); // must be packed guid
|
||||||
data << nowDead;
|
data << (uint32)enemy->isDead();
|
||||||
}
|
}
|
||||||
SendPacket(&data);
|
SendPacket(&data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user