fix(Core/Spells): Restore dafef5bd78 (#8380)

Fixes #5475
This commit is contained in:
UltraNix
2021-10-09 18:49:45 +02:00
committed by GitHub
parent 75bb82e3fb
commit 89f0c42c0e

View File

@@ -10234,6 +10234,13 @@ void Player::AddSpellAndCategoryCooldowns(SpellInfo const* spellInfo, uint32 ite
continue;
}
// Only within the same spellfamily
SpellInfo const* categorySpellInfo = sSpellMgr->GetSpellInfo(i_scset->first);
if (!categorySpellInfo || categorySpellInfo->SpellFamilyName != spellInfo->SpellFamilyName)
{
continue;
}
_AddSpellCooldown(i_scset->second, cat, itemId, catrecTime, !spellInfo->IsCooldownStartedOnEvent() && catrec && rec && catrec != rec);
}
}