Core/Auras: Removed outdated aura type handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/c563d52c8da02c610266b0376ef70ea92d022835)
This commit is contained in:
@@ -852,9 +852,7 @@ namespace Game.Entities
|
||||
float chance = critDone;
|
||||
|
||||
// flat aura mods
|
||||
if (attackType == WeaponAttackType.RangedAttack)
|
||||
chance += GetTotalAuraModifier(AuraType.ModAttackerRangedCritChance);
|
||||
else
|
||||
if (attackType != WeaponAttackType.RangedAttack)
|
||||
chance += GetTotalAuraModifier(AuraType.ModAttackerMeleeCritChance);
|
||||
|
||||
chance += GetTotalAuraModifier(AuraType.ModCritChanceVersusTargetHealth, aurEff => !HealthBelowPct(aurEff.GetMiscValueB()));
|
||||
|
||||
Reference in New Issue
Block a user