Core/Spells: Fixed spells with SPELL_ATTR12_START_COOLDOWN_ON_CAST_START failing to cast because of their own cooldown

This commit is contained in:
Shauren
2023-08-06 13:53:02 +02:00
parent 5aaaf3f916
commit a3a31a9a6f

View File

@@ -5562,7 +5562,7 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32
return SPELL_FAILED_NOT_READY;
}
if (!IsIgnoringCooldowns() && m_caster->ToUnit())
if (!IsIgnoringCooldowns() && m_caster->ToUnit() && (!m_spellInfo->HasAttribute(SPELL_ATTR12_START_COOLDOWN_ON_CAST_START) || strict))
{
if (!m_caster->ToUnit()->GetSpellHistory()->IsReady(m_spellInfo, m_castItemEntry))
{