Classic: preserve proc charges on unrelated event types
From KylRikul/TrinityCore, commit b4af1e522d, by KylRikul (GPL-2.0). Thank you!
This commit is contained in:
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user