aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-07-21 01:30:25 +0200
committerthenecromancer <none@none>2010-07-21 01:30:25 +0200
commita94afe82cadd2223456124b88bbc7cc39bc71de2 (patch)
tree0529db806d62365ca41ee0b4c81f61f93560ef11 /src
parenta71d11149f7cdf28cd3b72606452c403f5bdc1ad (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellMgr.h b/src/server/game/Spells/SpellMgr.h
index 8f030fc9c87..ec0149f3a63 100644
--- a/src/server/game/Spells/SpellMgr.h
+++ b/src/server/game/Spells/SpellMgr.h
@@ -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;
}