From 88264a17fb4bc85471f320cee08245ae44d613f0 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Fri, 13 Nov 2026 20:21:46 +0000 Subject: [PATCH] Classic: preserve proc charges on unrelated event types From KylRikul/TrinityCore, commit b4af1e522d, by KylRikul (GPL-2.0). Thank you! --- src/server/game/Spells/Auras/SpellAuras.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 9203f7d023..f6029db6d9 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -1848,6 +1848,10 @@ void Aura::PrepareProcToTrigger(AuraApplication* aurApp, ProcEventInfo& eventInf void Aura::PrepareProcChargeDrop(SpellProcEntry const* procEntry, ProcEventInfo const& eventInfo) { + // Failed attempts may burn a charge; unrelated event types must not. + if (GetSpellInfo()->HasAttribute(SPELL_ATTR15_UNK13) && !(eventInfo.GetTypeMask() & procEntry->ProcFlags)) + return; + // take one charge, aura expiration will be handled in Aura::TriggerProcOnEvent (if needed) if (!(procEntry->AttributesMask & PROC_ATTR_USE_STACKS_FOR_CHARGES) && IsUsingCharges() && (!eventInfo.GetSpellInfo() || !eventInfo.GetSpellInfo()->HasAttribute(SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES))) {