Core/PacketIO: Fixed sending OnHold pet cooldowns

This commit is contained in:
Shauren
2016-05-22 23:15:11 +02:00
parent b426262d1b
commit 18d28e8dc6

View File

@@ -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