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

Port From (https://github.com/TrinityCore/TrinityCore/commit/a3a31a9a6f7d0000b8fc3e1ca2e355664a7ed955)
This commit is contained in:
hondacrx
2023-09-13 19:31:39 -04:00
parent 28a4f85886
commit 070b35d6e8
+1 -1
View File
@@ -4703,7 +4703,7 @@ namespace Game.Spells
return SpellCastResult.NotReady;
}
if (!IsIgnoringCooldowns() && m_caster.ToUnit() != null)
if (!IsIgnoringCooldowns() && m_caster.ToUnit() != null && (!m_spellInfo.HasAttribute(SpellAttr12.StartCooldownOnCastStart) || strict))
{
if (!m_caster.ToUnit().GetSpellHistory().IsReady(m_spellInfo, m_castItemEntry))
{