aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-01-13 21:59:20 -0300
committerShauren <shauren.trinity@gmail.com>2021-06-14 18:50:10 +0200
commit770367a514ec6af2bcae687418b95d01681189ae (patch)
tree8d50158de07fee212be6e80e6eae94d7f0373a35
parent84a29d8077d2e2b6e8c8ebcb967344b57668cb88 (diff)
Core/Unit: fix Sanctified Wrath (again)
- Actually only rank 1 was affected because of 50% reduction on rank 2 (cherry picked from commit 0e9b1635e0a2351342e8ed0ae4a1495479e09ffc)
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index cf6c9451811..6bcfcb06fc0 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -7013,7 +7013,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;
@@ -7931,7 +7931,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;