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/SpellAuras.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/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 20393034b5f..2c88c4cec0d 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4367,7 +4367,7 @@ void AuraEffect::HandleModMechanicImmunity(bool apply, bool Real, bool /*changeA mechanic=IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK; // Forbearance // in DBC wrong mechanic immune since 3.0.x - else if (GetId() == 25771) + else if (GetId() == 25771) mechanic = 1 << MECHANIC_IMMUNE_SHIELD; if (!mechanic) @@ -7451,7 +7451,7 @@ int32 AuraEffect::CalculateCrowdControlAuraAmount(Unit * caster) m_auraName !=SPELL_AURA_MOD_ROOT) return 0; - int32 damageCap = (int32)(m_target->GetCreateHealth()*0.10f); + int32 damageCap = (int32)(m_target->GetMaxHealth()*0.10f); if (!caster) return damageCap; @@ -7462,7 +7462,7 @@ int32 AuraEffect::CalculateCrowdControlAuraAmount(Unit * caster) { if((*itr)->isAffectedOnSpell(m_spellProto)) { - // Glyph of Fear + // Glyph of Fear, Glyph of Frost nova and similar auras if ((*itr)->GetMiscValue() == 7801) { damageCap += (int32)(damageCap*(*itr)->GetAmount()/100.0f); |