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

Closes #21629
This commit is contained in:
ariel-
2018-03-16 12:34:42 -03:00
parent a35d0a5f56
commit 1c8d9af084

View File

@@ -1854,6 +1854,11 @@ void SpellMgr::LoadSpellProcs()
case SPELL_AURA_MOD_BLOCK_PERCENT:
procEntry.HitMask = PROC_HIT_BLOCK;
break;
// proc auras with another aura reducing hit chance (eg 63767) only proc on missed attack
case SPELL_AURA_MOD_HIT_CHANCE:
if (spellInfo->Effects[i].CalcValue() <= -100)
procEntry.HitMask = PROC_HIT_MISS;
break;
default:
continue;
}