From 96e9b6189fc5d8e0556c649af5ea94741ed2e94e Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 10 Dec 2023 18:45:59 +0100 Subject: [PATCH] Core/Units: fixed a typo which was causing armor mitigation to be bypassed --- src/server/game/Entities/Unit/Unit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index e46f2ce191..a64634165c 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -1199,6 +1199,7 @@ void Unit::CalculateMeleeDamage(Unit* victim, CalcDamageInfo* damageInfo, Weapon // Calculate armor reduction if (Unit::IsDamageReducedByArmor((SpellSchoolMask)(damageInfo->DamageSchoolMask))) damageInfo->Damage = Unit::CalcArmorReducedDamage(damageInfo->Attacker, damageInfo->Target, damage, nullptr, damageInfo->AttackType); + else damageInfo->Damage = damage; damageInfo->HitOutCome = RollMeleeOutcomeAgainst(damageInfo->Target, damageInfo->AttackType);