Core/Spells: Fixed refreshing stat buff auras that have been improved by talents

Port From (https://github.com/TrinityCore/TrinityCore/commit/6d94bc2f4b23c51a69213a46b28a5e97aa99f5d5)
This commit is contained in:
hondacrx
2022-02-18 17:31:31 -05:00
parent e6b9631ed0
commit 3dbe7259aa
+1 -1
View File
@@ -5521,7 +5521,7 @@ namespace Game.Spells
{
Unit target = m_targets.GetUnitTarget();
if (target != null)
if (!target.IsHighestExclusiveAuraEffect(m_spellInfo, spellEffectInfo.ApplyAuraName, spellEffectInfo.CalcBaseValue(m_caster, null, m_castItemEntry, m_castItemLevel), approximateAuraEffectMask, false))
if (!target.IsHighestExclusiveAuraEffect(m_spellInfo, spellEffectInfo.ApplyAuraName, spellEffectInfo.CalcValue(m_caster, m_spellValue.EffectBasePoints[spellEffectInfo.EffectIndex], null, m_castItemEntry, m_castItemLevel), approximateAuraEffectMask, false))
return SpellCastResult.AuraBounced;
}
}