fix(Core/Spells): Prevent friendly spells from breaking stealth (#24875)

This commit is contained in:
blinkysc
2026-02-25 12:41:42 -06:00
committed by GitHub
parent d2b60765b1
commit 460e2e0cac

View File

@@ -2184,7 +2184,7 @@ uint8 Aura::GetProcEffectMask(AuraApplication* aurApp, ProcEventInfo& eventInfo,
if (m_spellInfo->HasAura(SPELL_AURA_MOD_STEALTH))
{
if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo())
if (spellInfo->IsPositive())
if (spellInfo->IsPositive() || !eventInfo.GetActor()->IsHostileTo(aurApp->GetTarget()))
return 0;
}