mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10187] 2 non-sense code lines cleanup.
This commit is contained in:
parent
a0ea5cde4d
commit
04ec18afce
2 changed files with 5 additions and 6 deletions
|
|
@ -7316,7 +7316,7 @@ void Spell::EffectPlayerPull(SpellEffectIndex eff_idx)
|
|||
|
||||
void Spell::EffectDispelMechanic(SpellEffectIndex eff_idx)
|
||||
{
|
||||
if(!unitTarget)
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
uint32 mechanic = m_spellInfo->EffectMiscValue[eff_idx];
|
||||
|
|
@ -7326,17 +7326,16 @@ void Spell::EffectDispelMechanic(SpellEffectIndex eff_idx)
|
|||
{
|
||||
next = iter;
|
||||
++next;
|
||||
SpellEntry const *spell = sSpellStore.LookupEntry(iter->second->GetSpellProto()->Id);
|
||||
if(spell->Mechanic == mechanic || iter->second->HasAuraAndMechanicEffect(mechanic))
|
||||
SpellEntry const *spell = iter->second->GetSpellProto();
|
||||
if (spell->Mechanic == mechanic || iter->second->HasAuraAndMechanicEffect(mechanic))
|
||||
{
|
||||
unitTarget->RemoveAurasDueToSpell(spell->Id);
|
||||
if(Auras.empty())
|
||||
if (Auras.empty())
|
||||
break;
|
||||
else
|
||||
next = Auras.begin();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
void Spell::EffectSummonDeadPet(SpellEffectIndex /*eff_idx*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue