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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;