Core/Spells: Fixed SPELL_EFFECT_DISPEL when target has 2 spells with same ID (#23710)

Ty sirikfoll for all help :)
This commit is contained in:
Keader
2019-08-13 08:55:00 -03:00
committed by GitHub
parent af874a211c
commit 95284b23d1

View File

@@ -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;