mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 05:55:07 +00:00
fix(Core/Spells): passive auras should not stak with itself (#8652)
- Closes #8588
This commit is contained in:
@@ -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
|
// 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;
|
return false;
|
||||||
|
|
||||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user