mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[10233] Fixed check in SpellAuraHolder::HasMechanicMask
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d8c1374fcd
commit
d59cd7c2f2
3 changed files with 3 additions and 3 deletions
|
|
@ -8765,7 +8765,7 @@ bool SpellAuraHolder::HasMechanicMask(uint32 mechanicMask) const
|
|||
return true;
|
||||
|
||||
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 false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue