aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-05-01 21:02:01 +0200
committerShauren <shauren.trinity@gmail.com>2020-05-01 21:02:01 +0200
commit978745220a22a50a918a100c66819915ffe219e8 (patch)
tree3cbac6509e0204e99cd4620db5b3be6ff5c3157b /src
parent7701243f6ae419a302e624fefd5153fc7f9e09e0 (diff)
Core/Spells: Fixed refreshing stat buff auras that have been improved by talents
Closes #24527
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index b95ede0193e..877c25f9698 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -5962,7 +5962,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;
}