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

Closes #24527

(cherry picked from commit 978745220a22a50a918a100c66819915ffe219e8)
This commit is contained in:
Shauren
2022-01-01 23:45:39 +01:00
parent 6dace40895
commit 6d94bc2f4b
+3 -1
View File
@@ -6257,7 +6257,9 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32
// check if target already has the same type, but more powerful aura
if (!m_spellInfo->IsTargetingArea())
if (Unit* target = m_targets.GetUnitTarget())
if (!target->IsHighestExclusiveAuraEffect(m_spellInfo, spellEffectInfo.ApplyAuraName, spellEffectInfo.CalcBaseValue(m_caster, nullptr, m_castItemEntry, m_castItemLevel), approximateAuraEffectMask, false))
if (!target->IsHighestExclusiveAuraEffect(m_spellInfo, spellEffectInfo.ApplyAuraName,
spellEffectInfo.CalcValue(m_caster, &m_spellValue->EffectBasePoints[spellEffectInfo.EffectIndex], nullptr, nullptr, m_castItemEntry, m_castItemLevel),
approximateAuraEffectMask, false))
return SPELL_FAILED_AURA_BOUNCED;
}