mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
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)
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user