diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-05-10 16:30:48 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-05-10 16:30:48 +0200 |
commit | c189fe49119b5498f51ca2a7494280c44ec1ba0f (patch) | |
tree | d5b3a7da40f2cc41076c94c17d0e3dbabe7aa20b /src | |
parent | 6caba625721c94f08488dae466bc6c5862f23935 (diff) |
Core/Spells: Fix refreshing exclusive auras that have different values in each effect
Closes #24592
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index bb21d7c1a6c..537a5971a32 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -5966,7 +5966,7 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint if (!nonAuraEffectMask && (approximateAuraEffectMask & (1 << i)) && !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(m_caster, m_spellValue->EffectBasePoints), approximateAuraEffectMask, false)) + m_spellInfo->Effects[i].CalcValue(m_caster, &m_spellValue->EffectBasePoints[i]), approximateAuraEffectMask, false)) return SPELL_FAILED_AURA_BOUNCED; } |