From 4bea087a6f200fcef723f53628cfa043bccec484 Mon Sep 17 00:00:00 2001 From: Baptiste Marie Date: Thu, 8 Aug 2024 19:35:46 +0200 Subject: [PATCH] Amend bb71357 --- GameServer/ECS-Components/AttackComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GameServer/ECS-Components/AttackComponent.cs b/GameServer/ECS-Components/AttackComponent.cs index 39f593d7f4..4ac3734542 100644 --- a/GameServer/ECS-Components/AttackComponent.cs +++ b/GameServer/ECS-Components/AttackComponent.cs @@ -2057,12 +2057,13 @@ public virtual eAttackResult CalculateEnemyAttackResult(WeaponAction action, Att intercept = null; } + ad.DefensePenetration = ad.Attacker.attackComponent.CalculateDefensePenetration(ad); + if (!defenseDisabled) { if (lastAttackData != null && lastAttackData.AttackResult is not eAttackResult.HitStyle) lastAttackData = null; - ad.DefensePenetration = ad.Attacker.attackComponent.CalculateDefensePenetration(ad); double evadeChance = owner.TryEvade(ad, lastAttackData, Attackers.Count); ad.EvadeChance = evadeChance * 100; double evadeRoll;