Core/Spells: Fix Shadowform cooldown sometimes getting stuck

Port From (https://github.com/TrinityCore/TrinityCore/commit/018e66bc914e3e39b01e15a51ad683a5e881d156)
This commit is contained in:
Hondacrx
2024-08-05 14:13:23 -04:00
parent 708df58712
commit 9eefaca29a
+1 -1
View File
@@ -4831,7 +4831,7 @@ namespace Game.Spells
{ {
if (!m_caster.ToUnit().GetSpellHistory().IsReady(m_spellInfo, m_castItemEntry)) if (!m_caster.ToUnit().GetSpellHistory().IsReady(m_spellInfo, m_castItemEntry))
{ {
if (m_triggeredByAuraSpell != null) if (m_triggeredByAuraSpell != null || m_spellInfo.IsCooldownStartedOnEvent())
return SpellCastResult.DontReport; return SpellCastResult.DontReport;
else else
return SpellCastResult.NotReady; return SpellCastResult.NotReady;