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:
Kapoeira
2011-12-10 14:50:37 -05:00
parent 8fb18de128
commit 761c5c9e2f
+7 -3
View File
@@ -1478,9 +1478,13 @@ 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->GetEffectMechanicMask(effIndex) & (1<<MECHANIC_BLEED)) {
return false; if (spellInfo->Effects[effIndex].ApplyAuraName == SPELL_AURA_PERIODIC_DAMAGE ||
spellInfo->Effects[effIndex].Effect == SPELL_EFFECT_SCHOOL_DAMAGE)
if (spellInfo->GetEffectMechanicMask(effIndex) & (1<<MECHANIC_BLEED))
return false;
}
} }
return true; return true;
} }