diff options
| author | Shocker <none@none> | 2010-09-12 23:52:37 +0300 |
|---|---|---|
| committer | Shocker <none@none> | 2010-09-12 23:52:37 +0300 |
| commit | cbe95da41aa4b91556bbdb41508a981cecb839d5 (patch) | |
| tree | fd8a43a7d0610bfeb5d6c34cf3340744811788ef /src/server/game/Spells/Spell.cpp | |
| parent | c4028111bdef9614eec7f1a15b3cf9eb6a632410 (diff) | |
Core/Spells: Correct meaning & usage of SPELL_ATTR_EX2_NOT_RESET_AUTOSHOOT (now SPELL_ATTR_EX2_NOT_RESET_AUTO_ACTIONS) to ignore timer reset for both melee swings and ranged autoshoots, fixes issue 2639
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
| -rw-r--r-- | src/server/game/Spells/Spell.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 177b4bc858e..472972e18cc 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3738,7 +3738,7 @@ void Spell::finish(bool ok) } } - if (IsMeleeAttackResetSpell()) + if (IsAutoActionResetSpell()) { bool found = false; Unit::AuraEffectList const& vIgnoreReset = m_caster->GetAuraEffectsByType(SPELL_AURA_IGNORE_MELEE_RESET); @@ -3750,13 +3750,12 @@ void Spell::finish(bool ok) break; } } - if (!found) + if (!found && !(m_spellInfo->AttributesEx2 & SPELL_ATTR_EX2_NOT_RESET_AUTO_ACTIONS)) { m_caster->resetAttackTimer(BASE_ATTACK); if (m_caster->haveOffhandWeapon()) m_caster->resetAttackTimer(OFF_ATTACK); - if (!(m_spellInfo->AttributesEx2 & SPELL_ATTR_EX2_NOT_RESET_AUTOSHOT)) - m_caster->resetAttackTimer(RANGED_ATTACK); + m_caster->resetAttackTimer(RANGED_ATTACK); } } |
