diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-12-15 23:30:20 +0100 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-02-06 21:12:51 -0300 |
commit | 860ff849dc1ab267a490fceaa3f1ede07eb4ce45 (patch) | |
tree | 2dd77a7868ad22b944411274356b9747a5dd8b9d /src | |
parent | bf2121680f1aa0065ed2858198e2f21998edd0f4 (diff) |
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 88676120586df7581677eca8d5e2724579c69482)
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 d93f5fd4de4..f8cefe0b7c1 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -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) |