```code
if ((*targetSelectHookItr).IsEffectAffected(m_spellInfo, effIndex) ^ (*targetSelectHookItr).IsEffectAffected(m_spellInfo, effIndexToCheck))
    return false
```