From 04ec18afce2a332fc1461db80c3e3a6c8c78119e Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 13 Jul 2010 03:55:04 +0400 Subject: [PATCH] [10187] 2 non-sense code lines cleanup. --- src/game/SpellEffects.cpp | 9 ++++----- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 14db7be56..94e060732 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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*/) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 676de5185..004314bd6 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10186" + #define REVISION_NR "10187" #endif // __REVISION_NR_H__