diff options
| author | Shauren <shauren.trinity@gmail.com> | 2016-12-15 23:30:20 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2016-12-15 23:30:20 +0100 |
| commit | 88676120586df7581677eca8d5e2724579c69482 (patch) | |
| tree | 8579fdfaae9de187cd770a019fb8a21fe97a504e /src | |
| parent | 8b2e07166f72f6b6d7d55bdbe83191258d07f0cb (diff) | |
Core/Auras: Prevent infinite stacking of passive auras with the same id from the same caster on the same target
Closes #18475
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
