Core/Auras: Prevent infinite stacking of passive auras with the same id from the same caster on the same target

Closes #18475

(cherry picked from commit 8867612058)
This commit is contained in:
Shauren
2016-12-15 23:30:20 +01:00
committed by ariel-
parent bf2121680f
commit 860ff849dc

View File

@@ -1729,7 +1729,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 (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)