Core/Auras: Implemented new spell proc attribute PROC_ATTR_USE_STACKS_FOR_CHARGES to drop stacks instead of charges

This commit is contained in:
Shauren authored and Ovahlord committed 2021-02-19 12:51:56 +01:00
1 parent 116a9864d8
commit bb450b82ef
2 files changed
+16 -8

No files matched your search

+7 -2
View File
@@ -1873,8 +1873,13 @@ void Aura::TriggerProcOnEvent(uint8 procEffectMask, AuraApplication* aurApp, Pro
}
// Remove aura if we've used last charge to proc
if (IsUsingCharges() && !GetCharges())
Remove();
if (IsUsingCharges())
{
if (!GetCharges())
Remove();
}
else if (ASSERT_NOTNULL(sSpellMgr->GetSpellProcEntry(m_spellInfo->Id))->AttributesMask & PROC_ATTR_USE_STACKS_FOR_CHARGES)
ModStackAmount(-1);
}
void Aura::_DeleteRemovedApplications()