From 0e9b1635e0a2351342e8ed0ae4a1495479e09ffc Mon Sep 17 00:00:00 2001 From: ariel- Date: Sat, 13 Jan 2018 21:59:20 -0300 Subject: Core/Unit: fix Sanctified Wrath (again) - Actually only rank 1 was affected because of 50% reduction on rank 2 --- src/server/game/Entities/Unit/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 8e9027263f1..88981436b1d 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7212,7 +7212,7 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui if (!(aurEff->GetMiscValue() & spellProto->GetSchoolMask())) continue; - ApplyPct(damageReduction, aurEff->GetAmount()); + AddPct(damageReduction, -aurEff->GetAmount()); } TakenTotalMod = 1.0f - damageReduction; @@ -8365,7 +8365,7 @@ uint32 Unit::MeleeDamageBonusTaken(Unit* attacker, uint32 pdamage, WeaponAttackT if (!(aurEff->GetMiscValue() & attackSchoolMask)) continue; - ApplyPct(damageReduction, aurEff->GetAmount()); + AddPct(damageReduction, -aurEff->GetAmount()); } TakenTotalMod = 1.0f - damageReduction; -- cgit v1.2.3