Core/Spells: Fixed autoattack timer being reset by almost every spell cast

This commit is contained in:
Shauren authored and Ovahlord committed 2026-03-24 21:27:06 +01:00
1 parent ae5ad5f06c
commit b31333615f
4 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -7910,13 +7910,13 @@ bool Spell::IsChannelActive() const
bool Spell::IsAutoActionResetSpell() const
{
if (IsTriggered() || m_spellInfo->HasAttribute(SPELL_ATTR2_DO_NOT_RESET_COMBAT_TIMERS))
if (IsTriggered() || !m_spellInfo->InterruptFlags.HasFlag(SpellInterruptFlags::Combat) || m_spellInfo->HasAttribute(SPELL_ATTR2_DO_NOT_RESET_COMBAT_TIMERS))
return false;
if (!m_casttime && m_spellInfo->HasAttribute(SPELL_ATTR6_DOESNT_RESET_SWING_TIMER_IF_INSTANT))
return false;
return m_casttime || m_spellInfo->IsRangedWeaponSpell();
return true;
}
bool Spell::IsPositive() const