Core/Auras: Removed outdated aura type handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/c563d52c8da02c610266b0376ef70ea92d022835)
This commit is contained in:
@@ -195,7 +195,7 @@ namespace Framework.Constants
|
||||
ModAttackerRangedHitChance = 185,
|
||||
ModAttackerSpellHitChance = 186,
|
||||
ModAttackerMeleeCritChance = 187,
|
||||
ModAttackerRangedCritChance = 188,
|
||||
ModUIHealingRange = 188,
|
||||
ModRating = 189,
|
||||
ModFactionReputationGain = 190,
|
||||
UseNormalMovementSpeed = 191,
|
||||
|
||||
@@ -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()));
|
||||
|
||||
@@ -3661,7 +3661,6 @@ namespace Game.Spells
|
||||
case AuraType.ModAttackerRangedHitChance:
|
||||
case AuraType.ModAttackerSpellHitChance:
|
||||
case AuraType.ModAttackerMeleeCritChance:
|
||||
case AuraType.ModAttackerRangedCritChance:
|
||||
case AuraType.ModAttackerSpellAndWeaponCritChance:
|
||||
case AuraType.Dummy:
|
||||
case AuraType.PeriodicDummy:
|
||||
|
||||
Reference in New Issue
Block a user