mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10319] Prevent double remove aura holder at stacking limit.
If aura holder have 2 or 3 auras with fit to aura type stacking limitation code can attempt deleted old aura holder 2/3 times.
This commit is contained in:
parent
29ab336b27
commit
bfb1cb9e67
2 changed files with 2 additions and 2 deletions
|
|
@ -3892,7 +3892,7 @@ bool Unit::AddSpellAuraHolder(SpellAuraHolder *holder)
|
|||
|
||||
bool stop = false;
|
||||
|
||||
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||
for (int32 i = 0; i < MAX_EFFECT_INDEX && !stop; ++i)
|
||||
{
|
||||
// no need to check non stacking auras that weren't/won't be applied on this target
|
||||
if (!foundHolder->m_auras[i] || !holder->m_auras[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue