fix(Core/Spell): Make use of SPELL_ATTR6_DONT_CONSUME_PROC_CHARGES (#5004)
This commit is contained in:
@@ -2075,7 +2075,7 @@ void Aura::PrepareProcToTrigger(AuraApplication* aurApp, ProcEventInfo& eventInf
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// take one charge, aura expiration will be handled in Aura::TriggerProcOnEvent (if needed)
|
// take one charge, aura expiration will be handled in Aura::TriggerProcOnEvent (if needed)
|
||||||
if (IsUsingCharges())
|
if (IsUsingCharges() && (!eventInfo.GetSpellInfo() || !eventInfo.GetSpellInfo()->HasAttribute(SPELL_ATTR6_DONT_CONSUME_PROC_CHARGES)))
|
||||||
{
|
{
|
||||||
--m_procCharges;
|
--m_procCharges;
|
||||||
SetNeedClientUpdateForTargets();
|
SetNeedClientUpdateForTargets();
|
||||||
|
|||||||
Reference in New Issue
Block a user