fix(Core/Spell): Restore Stealth remove check (#4491)

This commit is contained in:
Vox 2021-02-07 14:08:10 -05:00 committed by GitHub
parent 2741a3ea1c
commit 94173dbbd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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