mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11631] Fix wrong overriding aura stack amount and proc charges at loading
Need to consider spell mods, partial dispels and etc...
This commit is contained in:
parent
6945d86e67
commit
10865b633f
3 changed files with 5 additions and 24 deletions
|
|
@ -16041,19 +16041,10 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
|
|||
}
|
||||
|
||||
// prevent wrong values of remaincharges
|
||||
if (spellproto->procCharges)
|
||||
{
|
||||
if (remaincharges <= 0 || remaincharges > spellproto->procCharges)
|
||||
remaincharges = spellproto->procCharges;
|
||||
}
|
||||
else
|
||||
if (spellproto->procCharges == 0)
|
||||
remaincharges = 0;
|
||||
|
||||
if (!spellproto->StackAmount)
|
||||
stackcount = 1;
|
||||
else if (spellproto->StackAmount < stackcount)
|
||||
stackcount = spellproto->StackAmount;
|
||||
else if (!stackcount)
|
||||
if (stackcount == 0)
|
||||
stackcount = 1;
|
||||
|
||||
SpellAuraHolder *holder = CreateSpellAuraHolder(spellproto, this, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue