From 6d94bc2f4b23c51a69213a46b28a5e97aa99f5d5 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 1 May 2020 21:02:01 +0200 Subject: Core/Spells: Fixed refreshing stat buff auras that have been improved by talents Closes #24527 (cherry picked from commit 978745220a22a50a918a100c66819915ffe219e8) --- src/server/game/Spells/Spell.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index b2ddb51d447..01cccc16af3 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -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; } -- cgit v1.2.3