mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(Core/Spells): preserve aura instances when dispelling (#26060)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user