Fix logic in SpellScript (thanks Toni.Shocker)

--HG--
branch : trunk
This commit is contained in:
azazel
2010-08-22 13:04:10 +06:00
parent 670964803f
commit b0086ce4fc

View File

@@ -47,8 +47,8 @@ uint8 _SpellScript::EffectHook::GetAffectedEffectsMask(SpellEntry const * spellE
{
if ((effIndex == EFFECT_FIRST_FOUND) && mask)
return mask;
if (CheckEffect(spellEntry, effIndex))
mask |= (uint8)1<<effIndex;
if (CheckEffect(spellEntry, i))
mask |= (uint8)1<<i;
}
}
else