Core/Unit: fix Sanctified Wrath (again)

Port From (https://github.com/TrinityCore/TrinityCore/commit/770367a514ec6af2bcae687418b95d01681189ae)
This commit is contained in:
hondacrx
2021-06-22 20:20:23 -04:00
parent 52276012cb
commit 0711c5b3a4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ namespace Game.Entities
if ((aurEff.GetMiscValue() & (int)spellProto.GetSchoolMask()) == 0)
continue;
MathFunctions.ApplyPct(ref damageReduction, aurEff.GetAmount());
MathFunctions.AddPct(ref damageReduction, -aurEff.GetAmount());
}
TakenTotalMod = 1.0f - damageReduction;
+1 -1
View File
@@ -4005,7 +4005,7 @@ namespace Game.Entities
if ((aurEff.GetMiscValue() & (int)attackSchoolMask) == 0)
continue;
MathFunctions.ApplyPct(ref damageReduction, aurEff.GetAmount());
MathFunctions.AddPct(ref damageReduction, -aurEff.GetAmount());
}
TakenTotalMod = 1.0f - damageReduction;