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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user