mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +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;
|
bool alreadyListed = false;
|
||||||
for (DispelChargesList::iterator successItr = success_list.begin(); successItr != success_list.end(); ++successItr)
|
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;
|
++successItr->second;
|
||||||
alreadyListed = true;
|
alreadyListed = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!alreadyListed)
|
if (!alreadyListed)
|
||||||
|
|||||||
Reference in New Issue
Block a user