Skip to content

Commit ede2319

Browse files
committed
Core/Spells: added missing part of 0d1d468
1 parent 81bd071 commit ede2319

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9938,6 +9938,9 @@ void Unit::TriggerAurasProcOnEvent(ProcEventInfo& eventInfo, AuraApplicationProc
99389938
{
99399939
Spell const* triggeringSpell = eventInfo.GetProcSpell();
99409940
bool const disableProcs = triggeringSpell && triggeringSpell->IsProcDisabled();
9941+
9942+
int32 oldProcChainLength = std::exchange(m_procChainLength, std::max(m_procChainLength + 1, triggeringSpell ? triggeringSpell->GetProcChainLength() : 0));
9943+
99419944
if (disableProcs)
99429945
SetCantProc(true);
99439946

@@ -9951,6 +9954,8 @@ void Unit::TriggerAurasProcOnEvent(ProcEventInfo& eventInfo, AuraApplicationProc
99519954

99529955
if (disableProcs)
99539956
SetCantProc(false);
9957+
9958+
m_procChainLength = oldProcChainLength;
99549959
}
99559960

99569961
///----------Pet responses methods-----------------

0 commit comments

Comments
 (0)