Core/Spells: Rake's initial damage is a bleeding effect, it should thus ignore armor.
So far this is the only example of such a mechanic (3.3.5), so this does not break anything.
This commit is contained in:
@@ -1478,10 +1478,14 @@ bool Unit::IsDamageReducedByArmor(SpellSchoolMask schoolMask, SpellInfo const* s
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// bleeding effects are not reduced by armor
|
// bleeding effects are not reduced by armor
|
||||||
if (effIndex != MAX_SPELL_EFFECTS && spellInfo->Effects[effIndex].ApplyAuraName == SPELL_AURA_PERIODIC_DAMAGE)
|
if (effIndex != MAX_SPELL_EFFECTS)
|
||||||
|
{
|
||||||
|
if (spellInfo->Effects[effIndex].ApplyAuraName == SPELL_AURA_PERIODIC_DAMAGE ||
|
||||||
|
spellInfo->Effects[effIndex].Effect == SPELL_EFFECT_SCHOOL_DAMAGE)
|
||||||
if (spellInfo->GetEffectMechanicMask(effIndex) & (1<<MECHANIC_BLEED))
|
if (spellInfo->GetEffectMechanicMask(effIndex) & (1<<MECHANIC_BLEED))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user