How to avoid function from affecting all BPs from the same class?

Hello, I am currently having a small annoying issue in which the AI function being called affects the user as well (due to those character blueprints being the child BP of the main character BP)
I have attached images of what I have. The issue in this case would be that during a battle the AI would be able to recognize the type of attack that is needed to shield their selves or dodge. However, when it comes to shielding the player also gets affected and becomes immobile (this is part of the shielding process, when a character shields, they are unable to move until they stop shielding). Hopefully someone can help me out with this, thanks! (Important note: this code is being called in a behavior tree task)