Core/Packets: Update and enable SMSG_COOLDOWN_EVENT

Fix build.
This commit is contained in:
Duarte Duarte
2015-02-11 23:09:56 +00:00
parent cbfe638fa5
commit 6678635cc7
4 changed files with 25 additions and 9 deletions
+4 -8
View File
@@ -22059,10 +22059,8 @@ void Player::SendCooldownEvent(SpellInfo const* spellInfo, uint32 itemId /*= 0*/
AddSpellAndCategoryCooldowns(spellInfo, itemId, spell);
// Send activate cooldown timer (possible 0) at client side
WorldPacket data(SMSG_COOLDOWN_EVENT, 4 + 8);
data << uint32(spellInfo->Id);
data << GetGUID();
SendDirectMessage(&data);
WorldPackets::Spells::CooldownEvent packet(GetGUID(), spellInfo->Id);
SendDirectMessage(packet.Write());
uint32 cat = spellInfo->GetCategory();
if (cat && spellInfo->CategoryRecoveryTime)
@@ -22083,10 +22081,8 @@ void Player::SendCooldownEvent(SpellInfo const* spellInfo, uint32 itemId /*= 0*/
if (catSet.find(i->first) != catSet.end())
{
// Send activate cooldown timer (possible 0) at client side
WorldPacket data(SMSG_COOLDOWN_EVENT, 4 + 8);
data << uint32(i->first);
data << uint64(GetGUID());
SendDirectMessage(&data);
WorldPackets::Spells::CooldownEvent packet(GetGUID(), i->first);
SendDirectMessage(packet.Write());
}
}
}