mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 13:39:46 -04:00
Core/Packets: Update and enable SMSG_COOLDOWN_EVENT
Fix build.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user