fix(Core/Spells): Prevent stealth from breaking on friendly proc spells (#24834)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-23 18:46:50 -06:00
committed by GitHub
parent b041bd54e1
commit e8ce033087

View File

@@ -2177,6 +2177,14 @@ uint8 Aura::GetProcEffectMask(AuraApplication* aurApp, ProcEventInfo& eventInfo,
return 0;
}
// Don't consume stealth charges from friendly spells
if (m_spellInfo->HasAura(SPELL_AURA_MOD_STEALTH))
{
if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo())
if (spellInfo->IsPositive())
return 0;
}
// check if we have charges to proc with
if (IsUsingCharges() && !GetCharges())
return 0;