Small improvement in spell mechanic check (do not include effect mechanic in mask when there's no associated effect)
Fixes issue #63 --HG-- branch : trunk
This commit is contained in:
@@ -492,7 +492,7 @@ inline uint32 GetAllSpellMechanicMask(SpellEntry const* spellInfo)
|
|||||||
if (spellInfo->Mechanic)
|
if (spellInfo->Mechanic)
|
||||||
mask |= 1<<spellInfo->Mechanic;
|
mask |= 1<<spellInfo->Mechanic;
|
||||||
for (int i=0; i< 3; ++i)
|
for (int i=0; i< 3; ++i)
|
||||||
if (spellInfo->EffectMechanic[i])
|
if (spellInfo->Effect[i] && spellInfo->EffectMechanic[i])
|
||||||
mask |= 1<<spellInfo->EffectMechanic[i];
|
mask |= 1<<spellInfo->EffectMechanic[i];
|
||||||
return mask;
|
return mask;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user