fix(Core/Spell): Make use of SPELL_ATTR6_DONT_CONSUME_PROC_CHARGES (#5004)

This commit is contained in:
Kitzunu 2021-04-07 23:07:35 +02:00 committed by GitHub
parent fb49b9710e
commit 88ddc24464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2075,7 +2075,7 @@ void Aura::PrepareProcToTrigger(AuraApplication* aurApp, ProcEventInfo& eventInf
return;
// 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;
SetNeedClientUpdateForTargets();