mirror of
https://github.com/mangosfour/server.git
synced 2026-01-01 16:37:12 +00:00
Cleanup Operator padding
This commit is contained in:
parent
9141299127
commit
e32b9953a1
264 changed files with 6715 additions and 6715 deletions
|
|
@ -50,7 +50,7 @@ void WorldSession::HandleAttackSwingOpcode(WorldPacket& recv_data)
|
|||
|
||||
if (_player->IsFriendlyTo(pEnemy) || pEnemy->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE))
|
||||
{
|
||||
sLog.outError("WORLD: Enemy %s is friendly",guid.GetString().c_str());
|
||||
sLog.outError("WORLD: Enemy %s is friendly", guid.GetString().c_str());
|
||||
|
||||
// stop attack state at client
|
||||
SendAttackStop(pEnemy);
|
||||
|
|
@ -65,7 +65,7 @@ void WorldSession::HandleAttackSwingOpcode(WorldPacket& recv_data)
|
|||
return;
|
||||
}
|
||||
|
||||
_player->Attack(pEnemy,true);
|
||||
_player->Attack(pEnemy, true);
|
||||
}
|
||||
|
||||
void WorldSession::HandleAttackStopOpcode(WorldPacket& /*recv_data*/)
|
||||
|
|
@ -82,7 +82,7 @@ void WorldSession::HandleSetSheathedOpcode(WorldPacket& recv_data)
|
|||
|
||||
if (sheathed >= MAX_SHEATH_STATE)
|
||||
{
|
||||
sLog.outError("Unknown sheath state %u ??",sheathed);
|
||||
sLog.outError("Unknown sheath state %u ??", sheathed);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ void WorldSession::HandleSetSheathedOpcode(WorldPacket& recv_data)
|
|||
|
||||
void WorldSession::SendAttackStop(Unit const* enemy)
|
||||
{
|
||||
WorldPacket data(SMSG_ATTACKSTOP, (4+20)); // we guess size
|
||||
WorldPacket data(SMSG_ATTACKSTOP, (4 + 20)); // we guess size
|
||||
data << GetPlayer()->GetPackGUID();
|
||||
data << (enemy ? enemy->GetPackGUID() : PackedGuid()); // must be packed guid
|
||||
data << uint32(0); // unk, can be 1 also
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue