Skip to content

Commit

Permalink
Spell: Add flag usage to SMSG_SPELL_COOLDOWN instead of random value
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Mar 14, 2024
1 parent c5e25dc commit 0e6808b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/Entities/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3048,7 +3048,7 @@ void Creature::AddCooldown(SpellEntry const& spellEntry, ItemPrototype const* /*
// send to client
WorldPacket data(SMSG_SPELL_COOLDOWN, 8 + 1 + 4);
data << GetObjectGuid();
data << uint8(1);
data << uint8(SPELL_COOLDOWN_FLAG_INCLUDE_GCD);
data << uint32(spellEntry.Id);
data << uint32(recTime);
player->GetSession()->SendPacket(data);
Expand Down
2 changes: 1 addition & 1 deletion src/game/Entities/Pet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ void Pet::_LoadSpellCooldowns()
{
WorldPacket data(SMSG_SPELL_COOLDOWN, 8 + 1 + cdData.size());
data << GetObjectGuid();
data << uint8(0x0); // flags (0x1, 0x2)
data << uint8(SPELL_COOLDOWN_FLAG_NONE);
data.append(cdData);
static_cast<Player*>(GetOwner())->GetSession()->SendPacket(data);
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21933,7 +21933,7 @@ void Player::LockOutSpells(SpellSchoolMask schoolMask, uint32 duration)

WorldPacket data(SMSG_SPELL_COOLDOWN, 8 + 1 + spellCount * 8);
data << GetObjectGuid();
data << uint8(0x0); // flags (0x1, 0x2)
data << uint8(SPELL_COOLDOWN_FLAG_NONE);
data.append(cdData);
GetSession()->SendPacket(data);

Expand Down

0 comments on commit 0e6808b

Please sign in to comment.