mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
*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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user