From 88676120586df7581677eca8d5e2724579c69482 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 15 Dec 2016 23:30:20 +0100 Subject: Core/Auras: Prevent infinite stacking of passive auras with the same id from the same caster on the same target Closes #18475 --- src/server/game/Spells/Auras/SpellAuras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 5f3c193e3e2..ab2da9d9472 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -1612,7 +1612,7 @@ bool Aura::CanStackWith(Aura const* existingAura) const bool sameCaster = GetCasterGUID() == existingAura->GetCasterGUID(); // passive auras don't stack with another rank of the spell cast by same caster - if (IsPassive() && sameCaster && m_spellInfo->IsDifferentRankOf(existingSpellInfo)) + if (IsPassive() && sameCaster && m_spellInfo->IsRankOf(existingSpellInfo)) return false; for (SpellEffectInfo const* effect : existingAura->GetSpellEffectInfos()) -- cgit v1.2.3