mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Spells: Implemented SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT.
Closes #1765
(cherry picked from commit 03e21d2fad)
This commit is contained in:
@@ -601,7 +601,7 @@ enum SpellAttr6
|
||||
SPELL_ATTR6_UNK22 = 0x00400000, // 22 only 72054
|
||||
SPELL_ATTR6_UNK23 = 0x00800000, // 23
|
||||
SPELL_ATTR6_CAN_TARGET_UNTARGETABLE = 0x01000000, // 24
|
||||
SPELL_ATTR6_UNK25 = 0x02000000, // 25 Exorcism, Flash of Light
|
||||
SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT = 0x02000000, // 25 Exorcism, Flash of Light
|
||||
SPELL_ATTR6_UNK26 = 0x04000000, // 26 related to player castable positive buff
|
||||
SPELL_ATTR6_UNK27 = 0x08000000, // 27
|
||||
SPELL_ATTR6_UNK28 = 0x10000000, // 28 Death Grip
|
||||
|
||||
@@ -3700,6 +3700,7 @@ void Spell::finish(bool ok)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found && !m_spellInfo->HasAttribute(SPELL_ATTR2_NOT_RESET_AUTO_ACTIONS))
|
||||
{
|
||||
m_caster->resetAttackTimer(BASE_ATTACK);
|
||||
@@ -6791,7 +6792,13 @@ bool Spell::IsNextMeleeSwingSpell() const
|
||||
bool Spell::IsAutoActionResetSpell() const
|
||||
{
|
||||
/// @todo changed SPELL_INTERRUPT_FLAG_AUTOATTACK -> SPELL_INTERRUPT_FLAG_INTERRUPT to fix compile - is this check correct at all?
|
||||
return !IsTriggered() && (m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_INTERRUPT);
|
||||
if (IsTriggered() || !(m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_INTERRUPT))
|
||||
return false;
|
||||
|
||||
if (!m_casttime && m_spellInfo->HasAttribute(SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Spell::IsNeedSendToClient() const
|
||||
|
||||
Reference in New Issue
Block a user