fix(Core/Spells): restore binary spell detection for CC resist via spell resistance (#25016)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-03-09 13:35:39 -05:00
committed by GitHub
parent bec18160c9
commit b4d5231843
3 changed files with 192 additions and 1 deletions

View File

@@ -3224,7 +3224,7 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
continue;
[[fallthrough]]; /// @todo: Not sure whether the fallthrough was a mistake (forgetting a break) or intended. This should be double-checked.
default:
if (!(spellInfo->Effects[j].CalcValue() &&
if (!(spellInfo->Effects[j].CalcValue() ||
((spellInfo->Effects[j].Effect == SPELL_EFFECT_INTERRUPT_CAST || spellInfo->HasAttribute(SPELL_ATTR0_CU_DONT_BREAK_STEALTH)) &&
!spellInfo->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES))))
continue;