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

This commit is contained in:
Shauren authored and Ovahlord committed 2020-08-23 20:20:18 +02:00
1 parent 0c08285932
commit 5d98550574
1 file changed
+2 -1
+2 -1
View File
@@ -6235,7 +6235,8 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
// 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, AuraType(m_spellInfo->Effects[i].ApplyAuraName), m_spellInfo->Effects[i].CalcValue(), approximateAuraEffectMask, false))
if (!target->IsHighestExclusiveAuraEffect(m_spellInfo, AuraType(m_spellInfo->Effects[i].ApplyAuraName),
m_spellInfo->Effects[i].CalcValue(m_caster, m_spellValue->EffectBasePoints), approximateAuraEffectMask, false))
return SPELL_FAILED_AURA_BOUNCED;
}