diff options
author | QAston <none@none> | 2009-07-13 21:27:05 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-13 21:27:05 +0200 |
commit | 310f15e546c2525e2fbef2fbea57521e4cc8b78b (patch) | |
tree | 794288cd95709cae36c8a9a26dceb2784548b98c /src/game/Spell.cpp | |
parent | 2120bc0d3055576db84a731463dd6b82b21008a0 (diff) |
*Make charge-like spells with talented warbringer correctly remove movement impairing auras.
*Fix Revitalize.
*Use MaxHp of target instead of base hp for CC auras amount.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 5e0fce39f98..9d5f425920f 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4758,9 +4758,14 @@ SpellCastResult Spell::CheckCast(bool strict) } case SPELL_EFFECT_CHARGE: { + if (m_spellInfo->SpellFamilyName == SPELLFAMILY_WARRIOR) + { + // Warbringer - can't be handled in proc system - should be done before checkcast root check and charge effect process + if (strict && m_caster->IsScriptOverriden(m_spellInfo, 6953)) + m_caster->RemoveMovementImpairingAuras(); + } if (m_caster->hasUnitState(UNIT_STAT_ROOT)) return SPELL_FAILED_ROOTED; - break; } case SPELL_EFFECT_SKINNING: |