fix(Core/Spells): preserve aura instances when dispelling (#26060)

This commit is contained in:
AlsoNotMehh
2026-06-10 19:06:15 -04:00
committed by GitHub
parent 7cfccde954
commit 2849807967

View File

@@ -2629,10 +2629,11 @@ void Spell::EffectDispel(SpellEffIndex effIndex)
bool alreadyListed = false;
for (DispelChargesList::iterator successItr = success_list.begin(); successItr != success_list.end(); ++successItr)
{
if (successItr->first->GetId() == itr->first->GetId())
if (successItr->first == itr->first)
{
++successItr->second;
alreadyListed = true;
break;
}
}
if (!alreadyListed)