mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +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)
|
void Spell::EffectDispelMechanic(SpellEffectIndex eff_idx)
|
||||||
{
|
{
|
||||||
if(!unitTarget)
|
if (!unitTarget)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 mechanic = m_spellInfo->EffectMiscValue[eff_idx];
|
uint32 mechanic = m_spellInfo->EffectMiscValue[eff_idx];
|
||||||
|
|
@ -7326,17 +7326,16 @@ void Spell::EffectDispelMechanic(SpellEffectIndex eff_idx)
|
||||||
{
|
{
|
||||||
next = iter;
|
next = iter;
|
||||||
++next;
|
++next;
|
||||||
SpellEntry const *spell = sSpellStore.LookupEntry(iter->second->GetSpellProto()->Id);
|
SpellEntry const *spell = iter->second->GetSpellProto();
|
||||||
if(spell->Mechanic == mechanic || iter->second->HasAuraAndMechanicEffect(mechanic))
|
if (spell->Mechanic == mechanic || iter->second->HasAuraAndMechanicEffect(mechanic))
|
||||||
{
|
{
|
||||||
unitTarget->RemoveAurasDueToSpell(spell->Id);
|
unitTarget->RemoveAurasDueToSpell(spell->Id);
|
||||||
if(Auras.empty())
|
if (Auras.empty())
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
next = Auras.begin();
|
next = Auras.begin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Spell::EffectSummonDeadPet(SpellEffectIndex /*eff_idx*/)
|
void Spell::EffectSummonDeadPet(SpellEffectIndex /*eff_idx*/)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10186"
|
#define REVISION_NR "10187"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue