[10233] Fixed check in SpellAuraHolder::HasMechanicMask

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
pasdVn 2010-07-20 15:02:22 +04:00 committed by VladimirMangos
parent d8c1374fcd
commit d59cd7c2f2
3 changed files with 3 additions and 3 deletions

View file

@ -8765,7 +8765,7 @@ bool SpellAuraHolder::HasMechanicMask(uint32 mechanicMask) const
return true; return true;
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i) for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
if (m_auras[i] && m_spellProto->EffectMechanic[i] & mechanicMask) if (m_auras[i] && m_spellProto->EffectMechanic[i] && ((1 << (m_spellProto->EffectMechanic[i] -1)) & mechanicMask))
return true; return true;
return false; return false;
} }

View file

@ -7362,7 +7362,7 @@ void Spell::EffectDispelMechanic(SpellEffectIndex eff_idx)
next = iter; next = iter;
++next; ++next;
SpellEntry const *spell = iter->second->GetSpellProto(); SpellEntry const *spell = iter->second->GetSpellProto();
if (spell->Mechanic == mechanic || iter->second->HasMechanic(mechanic)) if (iter->second->HasMechanic(mechanic))
{ {
unitTarget->RemoveAurasDueToSpell(spell->Id); unitTarget->RemoveAurasDueToSpell(spell->Id);
if (Auras.empty()) if (Auras.empty())

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10232" #define REVISION_NR "10233"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__