There is a Legacy version
here.
Cognitive Loophole [reaction] Feat 18*Rogue Source Player Core pg. 176 2.0Archetype ShadowdancerTrigger Your turn ends
Requirements You are currently affected by a mental effect
* This version of the Cognitive Loophole feat is intended for use with an Archetype and has a different level for access than the
original feat.
You can find a loophole in a mental effect to temporarily overcome it. Until the end of your next turn, you ignore a single mental effect. You can suppress a particular effect using Cognitive Loophole only once. You can’t use Cognitive Loophole to suppress an effect you chose to have affect you.
Special You can use this reaction even if the mental effect is preventing you from using reactions.
Archetype Use
This feat can be used for one or more Archetypes in addition to the listed Classes. When selected this way, the feat is not considered to have its class traits.