Core/Auras: Implement SPELL_AURA_IGNORE_DUAL_WIELD_HIT_PENALTY

Port From (https://github.com/TrinityCore/TrinityCore/commit/1a0341ccbdd4fa443e978cb952965a1eaf3b55d2)
This commit is contained in:
hondacrx
2022-05-09 13:24:59 -04:00
parent ac97b9b15b
commit 3355b1e066
+1 -1
View File
@@ -801,7 +801,7 @@ namespace Game.Entities
float missChance = victim.GetUnitMissChance();
// melee attacks while dual wielding have +19% chance to miss
if (spellInfo == null && HaveOffhandWeapon() && !IsInFeralForm())
if (spellInfo == null && HaveOffhandWeapon() && !IsInFeralForm() && !HasAuraType(AuraType.IgnoreDualWieldHitPenalty))
missChance += 19.0f;
// Spellmod from SpellModOp.HitChance