fix(Core/Spells): Check DONT_BREAK_STEALTH in stealth proc guard (#24898)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -2184,7 +2184,7 @@ uint8 Aura::GetProcEffectMask(AuraApplication* aurApp, ProcEventInfo& eventInfo,
|
|||||||
if (m_spellInfo->HasAura(SPELL_AURA_MOD_STEALTH))
|
if (m_spellInfo->HasAura(SPELL_AURA_MOD_STEALTH))
|
||||||
{
|
{
|
||||||
if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo())
|
if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo())
|
||||||
if (spellInfo->IsPositive() || !eventInfo.GetActor()->IsHostileTo(aurApp->GetTarget()))
|
if (spellInfo->IsPositive() || !eventInfo.GetActor()->IsHostileTo(aurApp->GetTarget()) || spellInfo->HasAttribute(SPELL_ATTR0_CU_DONT_BREAK_STEALTH))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user