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:
@@ -1550,6 +1550,11 @@ namespace Game.Entities
|
|||||||
case AuraType.ModBlockPercent:
|
case AuraType.ModBlockPercent:
|
||||||
procEntry.HitMask = ProcFlagsHit.Block;
|
procEntry.HitMask = ProcFlagsHit.Block;
|
||||||
break;
|
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:
|
default:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user