mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +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;
|
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
|
// 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])
|
if (!foundHolder->m_auras[i] || !holder->m_auras[i])
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10318"
|
#define REVISION_NR "10319"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue