Core/Spells: autogenerate miss proc for spells with auras with hit chance -100

Port From (https://github.com/TrinityCore/TrinityCore/commit/50c5284602a2a80826b2de033e119bc0b6730fe9)
This commit is contained in:
hondacrx
2021-09-09 13:57:02 -04:00
parent 647aca03c2
commit 7a5671ce22
+5
View File
@@ -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;
}