From 7a5671ce22f790ef40409f41b169cd6788e397ba Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 9 Sep 2021 13:57:02 -0400 Subject: [PATCH] Core/Spells: autogenerate miss proc for spells with auras with hit chance -100 Port From (https://github.com/TrinityCore/TrinityCore/commit/50c5284602a2a80826b2de033e119bc0b6730fe9) --- Source/Game/Spells/SpellManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Game/Spells/SpellManager.cs b/Source/Game/Spells/SpellManager.cs index 0bb0d42e5..25ca988a9 100644 --- a/Source/Game/Spells/SpellManager.cs +++ b/Source/Game/Spells/SpellManager.cs @@ -1550,6 +1550,11 @@ namespace Game.Entities case AuraType.ModBlockPercent: procEntry.HitMask = ProcFlagsHit.Block; break; + // proc auras with another aura reducing hit chance (eg 63767) only proc on missed attack + case AuraType.ModHitChance: + if (spellEffectInfo.CalcValue() <= -100) + procEntry.HitMask = ProcFlagsHit.Miss; + break; default: continue; }