Core/Spell: in case of immunity, check all effects to choose correct procFlags, as none has technically hit

This commit is contained in:
ariel- authored and Aokromes committed 2017-05-30 09:21:03 +02:00
1 parent e80602f048
commit e778c4c628
1 file changed
+2 -1
+2 -1
View File
@@ -2393,7 +2393,8 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
{
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
if (!(target->effectMask & (1 << i)))
// in case of immunity, check all effects to choose correct procFlags, as none has technically hit
if (target->effectMask && !(target->effectMask & (1 << i)))
continue;
if (!m_spellInfo->IsPositiveEffect(i))