Core/Unit: fix Sanctified Wrath (again)
Port From (https://github.com/TrinityCore/TrinityCore/commit/770367a514ec6af2bcae687418b95d01681189ae)
This commit is contained in:
@@ -331,7 +331,7 @@ namespace Game.Entities
|
|||||||
if ((aurEff.GetMiscValue() & (int)spellProto.GetSchoolMask()) == 0)
|
if ((aurEff.GetMiscValue() & (int)spellProto.GetSchoolMask()) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
MathFunctions.ApplyPct(ref damageReduction, aurEff.GetAmount());
|
MathFunctions.AddPct(ref damageReduction, -aurEff.GetAmount());
|
||||||
}
|
}
|
||||||
|
|
||||||
TakenTotalMod = 1.0f - damageReduction;
|
TakenTotalMod = 1.0f - damageReduction;
|
||||||
|
|||||||
@@ -4005,7 +4005,7 @@ namespace Game.Entities
|
|||||||
if ((aurEff.GetMiscValue() & (int)attackSchoolMask) == 0)
|
if ((aurEff.GetMiscValue() & (int)attackSchoolMask) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
MathFunctions.ApplyPct(ref damageReduction, aurEff.GetAmount());
|
MathFunctions.AddPct(ref damageReduction, -aurEff.GetAmount());
|
||||||
}
|
}
|
||||||
|
|
||||||
TakenTotalMod = 1.0f - damageReduction;
|
TakenTotalMod = 1.0f - damageReduction;
|
||||||
|
|||||||
Reference in New Issue
Block a user