mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 21:45:12 +00:00
fix(Core/Spells): Add proc chain guard and TAKEN auto-trigger logic (#24966)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
@@ -2029,6 +2029,24 @@ void SpellMgr::LoadSpellProcs()
|
||||
|
||||
if (!addTriggerFlag && isAlwaysTriggeredAura[auraName])
|
||||
addTriggerFlag = true;
|
||||
|
||||
// Many proc auras with taken procFlag mask don't have
|
||||
// attribute "can proc with triggered" — they should
|
||||
// proc nevertheless (e.g. mage armor spells with
|
||||
// judgement)
|
||||
if (!addTriggerFlag
|
||||
&& (spellInfo->ProcFlags & TAKEN_HIT_PROC_FLAG_MASK))
|
||||
{
|
||||
switch (auraName)
|
||||
{
|
||||
case SPELL_AURA_PROC_TRIGGER_SPELL:
|
||||
case SPELL_AURA_PROC_TRIGGER_DAMAGE:
|
||||
addTriggerFlag = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
|
||||
Reference in New Issue
Block a user