Core/Spells: moved avoidance bonus handling to Unit::SpellDamageBonusTaken as it does affect all area attacks instead of periodic auras only
This commit is contained in:
1 parent
8c8111976a
commit
60c68dacca
2 files changed
+8
-10
No files matched your search
@@ -6942,6 +6942,14 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui
|
||||
return false;
|
||||
});
|
||||
|
||||
// From avoidance
|
||||
if (spellProto->IsAffectingArea() || spellProto->HasAreaAuraEffect())
|
||||
{
|
||||
TakenTotalMod *= GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE, spellProto->SchoolMask);
|
||||
if (caster->IsCreature())
|
||||
TakenTotalMod *= GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE, spellProto->SchoolMask);
|
||||
}
|
||||
|
||||
// From caster spells
|
||||
if (caster)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user