fix(Core/Spells): passive auras should not stak with itself (#8652)

- Closes #8588
This commit is contained in:
UltraNix
2021-10-22 11:32:35 +02:00
committed by GitHub
parent 6ab6ab0f11
commit b0d4f1917e

View File

@@ -1918,7 +1918,7 @@ bool Aura::CanStackWith(Aura const* existingAura, bool remove) const
}
// 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->IsDifferentRankOf(existingSpellInfo) || (m_spellInfo->Id == existingSpellInfo->Id && m_castItemGuid.IsEmpty())))
return false;
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)