mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/PacketIO: Fixed sending OnHold pet cooldowns
This commit is contained in:
@@ -359,6 +359,8 @@ void SpellHistory::WritePacket(WorldPackets::Pet::PetSpells* petSpells) const
|
||||
if (categoryDuration.count() > 0)
|
||||
petSpellCooldown.CategoryDuration = uint32(categoryDuration.count());
|
||||
}
|
||||
else
|
||||
petSpellCooldown.CategoryDuration = 0x80000000;
|
||||
|
||||
petSpells->Cooldowns.push_back(petSpellCooldown);
|
||||
}
|
||||
@@ -382,7 +384,6 @@ void SpellHistory::WritePacket(WorldPackets::Pet::PetSpells* petSpells) const
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SpellHistory::StartCooldown(SpellInfo const* spellInfo, uint32 itemId, Spell* spell /*= nullptr*/, bool onHold /*= false*/)
|
||||
{
|
||||
// init cooldown values
|
||||
|
||||
Reference in New Issue
Block a user