Skip to content

Commit

Permalink
Amend bb71357
Browse files Browse the repository at this point in the history
  • Loading branch information
bm01 committed Aug 8, 2024
1 parent 6dc92b9 commit 4bea087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GameServer/ECS-Components/AttackComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bea087

Please sign in to comment.