fix(Core/Spells): Exempt kill/death events from triggered-spell proc filter (#24859)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-24 19:15:16 -06:00
committed by GitHub
parent 1e73383b54
commit 25ff0c9ef4
3 changed files with 117 additions and 2 deletions

View File

@@ -2164,9 +2164,12 @@ uint8 Aura::GetProcEffectMask(AuraApplication* aurApp, ProcEventInfo& eventInfo,
return 0;
// check if aura can proc when spell is triggered (exception for hunter auto shot & wands)
// Kill/killed/death events should not be blocked by the triggered-spell check -
// the kill itself is the proc trigger, not the spell that dealt the killing blow
if (!GetSpellInfo()->HasAttribute(SPELL_ATTR3_CAN_PROC_FROM_PROCS) &&
!(procEntry->AttributesMask & PROC_ATTR_TRIGGERED_CAN_PROC) &&
!(eventInfo.GetTypeMask() & AUTO_ATTACK_PROC_FLAG_MASK))
!(eventInfo.GetTypeMask() & AUTO_ATTACK_PROC_FLAG_MASK) &&
!(eventInfo.GetTypeMask() & (PROC_FLAG_KILL | PROC_FLAG_KILLED | PROC_FLAG_DEATH)))
{
if (spell->IsTriggered() && !spell->GetSpellInfo()->HasAttribute(SPELL_ATTR3_NOT_A_PROC))
return 0;