mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11278] Fixed auras stack size check at loading.
For non stacking auras preserve stack size 1 as auras created instead reset it to 0 at mnext load. For client no difference in show and most non stacking auras not dependent from stack size value at server side code, but any way set stack size to 0 can generate unexpected wrong caluclation results in spell code.
This commit is contained in:
parent
96183f8e3f
commit
0751a35342
3 changed files with 18 additions and 9 deletions
|
|
@ -1240,8 +1240,13 @@ void Pet::_LoadAuras(uint32 timediff)
|
|||
else
|
||||
remaincharges = 0;
|
||||
|
||||
if (spellproto->StackAmount < stackcount)
|
||||
if (!spellproto->StackAmount)
|
||||
stackcount = 1;
|
||||
else if (spellproto->StackAmount < stackcount)
|
||||
stackcount = spellproto->StackAmount;
|
||||
else if (!stackcount)
|
||||
stackcount = 1;
|
||||
|
||||
|
||||
SpellAuraHolder *holder = CreateSpellAuraHolder(spellproto, this, NULL);
|
||||
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||
|
|
|
|||
|
|
@ -15972,8 +15972,12 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
|
|||
else
|
||||
remaincharges = 0;
|
||||
|
||||
if (spellproto->StackAmount < stackcount)
|
||||
if (!spellproto->StackAmount)
|
||||
stackcount = 1;
|
||||
else if (spellproto->StackAmount < stackcount)
|
||||
stackcount = spellproto->StackAmount;
|
||||
else if (!stackcount)
|
||||
stackcount = 1;
|
||||
|
||||
SpellAuraHolder *holder = CreateSpellAuraHolder(spellproto, this, NULL);
|
||||
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11277"
|
||||
#define REVISION_NR "11278"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue