fix(Core/Pets): Save all spell cooldowns to db. (#13809)

Fixes #13539
This commit is contained in:
UltraNix
2022-11-16 05:26:46 +01:00
committed by GitHub
parent ae84bf67c4
commit 79bef9a057

View File

@@ -1499,7 +1499,7 @@ void Pet::_SaveSpellCooldowns(CharacterDatabaseTransaction trans)
{
m_CreatureSpellCooldowns.erase(itr2);
}
else if (itr2->second.end <= infTime && (itr2->second.end > (curMSTime + 30 * IN_MILLISECONDS)))
else if (itr2->second.end <= infTime)
{
uint32 cooldown = ((itr2->second.end - curMSTime) / IN_MILLISECONDS) + curTime;
stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_PET_SPELL_COOLDOWN);