aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2019-08-13 08:55:00 -0300
committerGitHub <noreply@github.com>2019-08-13 08:55:00 -0300
commit95284b23d1e48883fe738ecf5a12c4253566894e (patch)
treec0b60c9742a64fa056ac6efc23c5fd6c7f6f9847 /src
parentaf874a211c0f064bd685cddeded3ca7d6d690e8f (diff)
Core/Spells: Fixed SPELL_EFFECT_DISPEL when target has 2 spells with same ID (#23710)
Ty sirikfoll for all help :)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 86882d5714f..f71c29c8eb6 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2290,7 +2290,7 @@ void Spell::EffectDispel(SpellEffIndex effIndex)
{
auto successItr = std::find_if(successList.begin(), successList.end(), [&itr](DispelableAura& dispelAura) -> bool
{
- if (dispelAura.GetAura()->GetId() == itr->GetAura()->GetId())
+ if (dispelAura.GetAura()->GetId() == itr->GetAura()->GetId() && dispelAura.GetAura()->GetCaster() == itr->GetAura()->GetCaster())
return true;
return false;