mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Spells: autogenerate miss proc for spells with auras with hit chance -100
Closes #21629
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user