Core/Auras: Fixed aura stacks being reset to default max stack size when modified by SpellModOp::MaxAuraStacks and reaching the new limit

Port From (https://github.com/TrinityCore/TrinityCore/commit/586651031ee847232d0dabf3eff9e6b01075ef31)
This commit is contained in:
Hondacrx
2025-05-25 11:07:45 -04:00
parent 486d80ceb9
commit 56961a2ebc
+1 -1
View File
@@ -952,7 +952,7 @@ namespace Game.Spells
if (m_spellInfo.StackAmount == 0) if (m_spellInfo.StackAmount == 0)
stackAmount = 1; stackAmount = 1;
else else
stackAmount = (int)m_spellInfo.StackAmount; stackAmount = (int)maxStackAmount;
} }
// we're out of stacks, remove // we're out of stacks, remove
else if (stackAmount <= 0) else if (stackAmount <= 0)