From 070b35d6e8fabf3c4af2e9c28c26b806aa688dc2 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 13 Sep 2023 19:31:39 -0400 Subject: [PATCH] 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) --- Source/Game/Spells/Spell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index a511bdbe0..ebab20a42 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -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)) {