Fix build
This commit is contained in:
1 parent
293658fb13
commit
aaf3f090ea
22 files changed
+107
-148
No files matched your search
@@ -606,13 +606,33 @@ void SpellHistory::SendClearCooldowns(std::vector<int32> const& cooldowns) const
|
||||
{
|
||||
if (Player* playerOwner = GetPlayerOwner())
|
||||
{
|
||||
ObjectGuid guid = playerOwner->GetGUID();
|
||||
WorldPacket data(SMSG_CLEAR_COOLDOWNS, 4 + 8);
|
||||
data.WriteBit(guid[1]);
|
||||
data.WriteBit(guid[3]);
|
||||
data.WriteBit(guid[6]);
|
||||
data.WriteBits(cooldowns.size(), 24); // Spell Count
|
||||
data.WriteBit(guid[7]);
|
||||
data.WriteBit(guid[5]);
|
||||
data.WriteBit(guid[2]);
|
||||
data.WriteBit(guid[4]);
|
||||
data.WriteBit(guid[0]);
|
||||
|
||||
data.FlushBits();
|
||||
|
||||
data.WriteByteSeq(guid[7]);
|
||||
data.WriteByteSeq(guid[2]);
|
||||
data.WriteByteSeq(guid[4]);
|
||||
data.WriteByteSeq(guid[5]);
|
||||
data.WriteByteSeq(guid[1]);
|
||||
data.WriteByteSeq(guid[3]);
|
||||
for (int32 spell : cooldowns)
|
||||
{
|
||||
WorldPacket data(SMSG_CLEAR_COOLDOWN, 4 + 8);
|
||||
data << uint32(spell);
|
||||
data << uint64(_owner->GetGUID());
|
||||
playerOwner->SendDirectMessage(&data);
|
||||
}
|
||||
data << uint32(spell); // Spell ID
|
||||
|
||||
data.WriteByteSeq(guid[0]);
|
||||
data.WriteByteSeq(guid[6]);
|
||||
|
||||
playerOwner->SendDirectMessage(&data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user