Core/Auras: Fixed SPELLVALUE_AURA_STACK adding incorrect number of stacks on aura refresh

Port From (https://github.com/TrinityCore/TrinityCore/commit/4c605ce621a137f32cf02527d48e36fed1b6e235)
This commit is contained in:
Hondacrx
2025-08-09 21:38:54 -04:00
parent 59cfc97e15
commit e48d7c9778
5 changed files with 13 additions and 16 deletions
+2 -1
View File
@@ -571,6 +571,7 @@ namespace Game.Entities
createInfo.SetCasterGUID(casterGuid);
createInfo.SetBaseAmount(info.BaseAmounts);
createInfo.SetCastItem(itemGuid, castItemId, castItemLevel);
createInfo.SetStackAmount(stackCount);
Aura aura = Aura.TryCreate(createInfo);
if (aura != null)
@@ -581,7 +582,7 @@ namespace Game.Entities
continue;
}
aura.SetLoadedState(maxDuration, remainTime, remainCharges, stackCount, recalculateMask, info.Amounts);
aura.SetLoadedState(maxDuration, remainTime, remainCharges, recalculateMask, info.Amounts);
aura.ApplyForTargets();
Log.outInfo(LogFilter.Player, "Added aura spellid {0}, effectmask {1}", spellInfo.Id, key.EffectMask);
}