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:
thenecromancer
2010-07-21 01:30:25 +02:00
parent a71d11149f
commit a94afe82ca

View File

@@ -492,7 +492,7 @@ inline uint32 GetAllSpellMechanicMask(SpellEntry const* spellInfo)
if (spellInfo->Mechanic)
mask |= 1<<spellInfo->Mechanic;
for (int i=0; i< 3; ++i)
if (spellInfo->EffectMechanic[i])
if (spellInfo->Effect[i] && spellInfo->EffectMechanic[i])
mask |= 1<<spellInfo->EffectMechanic[i];
return mask;
}