fix(Core/Spell): Restore SPELL_ATTR0_CU_AURA_CC (#4472)

This commit is contained in:
Kitzunu
2021-02-07 15:06:27 +01:00
committed by GitHub
parent d902411171
commit 440d4191ae
6 changed files with 38 additions and 4 deletions

View File

@@ -2808,8 +2808,10 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA
unit->IncrDiminishing(m_diminishGroup);
}
if (m_caster != unit && m_caster->IsHostileTo(unit) && !m_spellInfo->IsPositive() && !m_triggeredByAuraSpell && !m_spellInfo->HasAttribute(SPELL_ATTR0_CU_DONT_BREAK_STEALTH))
if (!m_spellInfo->HasAttribute(SPELL_ATTR0_CU_DONT_BREAK_STEALTH))
{
unit->RemoveAurasByType(SPELL_AURA_MOD_STEALTH);
}
if (aura_effmask)
{