Core/Units: Fix melee attack victim level calculation

Port From (https://github.com/TrinityCore/TrinityCore/commit/d93ca90d49827ddbea1478e7a3966a03c81a3d58)
This commit is contained in:
Hondacrx
2024-11-10 21:53:28 -05:00
parent 60ad9da7b5
commit f14a77d33f
+1 -1
View File
@@ -1385,7 +1385,7 @@ namespace Game.Entities
int roll = RandomHelper.IRand(0, 9999);
uint attackerLevel = GetLevelForTarget(victim);
uint victimLevel = GetLevelForTarget(this);
uint victimLevel = victim.GetLevelForTarget(this);
// check if attack comes from behind, nobody can parry or block if attacker is behind
bool canParryOrBlock = victim.HasInArc((float)Math.PI, this) || victim.HasAuraType(AuraType.IgnoreHitDirection);