Core/Spells: added missing part of 0d1d468c
This commit is contained in:
1 parent
81bd071bd3
commit
ede231982e
1 file changed
+5
@@ -9938,6 +9938,9 @@ void Unit::TriggerAurasProcOnEvent(ProcEventInfo& eventInfo, AuraApplicationProc
|
||||
{
|
||||
Spell const* triggeringSpell = eventInfo.GetProcSpell();
|
||||
bool const disableProcs = triggeringSpell && triggeringSpell->IsProcDisabled();
|
||||
|
||||
int32 oldProcChainLength = std::exchange(m_procChainLength, std::max(m_procChainLength + 1, triggeringSpell ? triggeringSpell->GetProcChainLength() : 0));
|
||||
|
||||
if (disableProcs)
|
||||
SetCantProc(true);
|
||||
|
||||
@@ -9951,6 +9954,8 @@ void Unit::TriggerAurasProcOnEvent(ProcEventInfo& eventInfo, AuraApplicationProc
|
||||
|
||||
if (disableProcs)
|
||||
SetCantProc(false);
|
||||
|
||||
m_procChainLength = oldProcChainLength;
|
||||
}
|
||||
|
||||
///----------Pet responses methods-----------------
|
||||
|
||||
Reference in new issue
Block a user