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:
@@ -2354,21 +2354,13 @@ namespace Game.Spells
|
||||
createInfo.SetCastItem(m_castItemGUID, m_castItemEntry, m_castItemLevel);
|
||||
createInfo.SetPeriodicReset(resetPeriodicTimer);
|
||||
createInfo.SetOwnerEffectMask(aura_effmask);
|
||||
createInfo.SetStackAmount(m_spellValue.AuraStackAmount);
|
||||
|
||||
Aura aura = Aura.TryRefreshStackOrCreate(createInfo, false);
|
||||
if (aura != null)
|
||||
{
|
||||
hitInfo.HitAura = aura.ToUnitAura();
|
||||
|
||||
// Set aura stack amount to desired value
|
||||
if (m_spellValue.AuraStackAmount > 1)
|
||||
{
|
||||
if (!createInfo.IsRefresh)
|
||||
hitInfo.HitAura.SetStackAmount((byte)m_spellValue.AuraStackAmount);
|
||||
else
|
||||
hitInfo.HitAura.ModStackAmount(m_spellValue.AuraStackAmount);
|
||||
}
|
||||
|
||||
hitInfo.HitAura.SetDiminishGroup(hitInfo.DRGroup);
|
||||
|
||||
if (!m_spellValue.Duration.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user