I am recreating World of Warcraft from scratch and I'm stuck on the targeting system

Here’s the system so far.

YouTube

As you can see I am able to target and switch targets. I am also able to damage the dummies. It also have an obstruction check where it doesn’t allow the damage when an object or a wall is in front of the caster. Now, the problem is that when I try to damage the Raiding Dummy behind the Training Dummy it doesn’t work, thus it show on the top left corner that the “Target is out of sight”. I would like to share my blueprint but if I did, then it’s like I’m looking for a spoon to be fed with, so If it would be possible if you can guide me in a way where it’s not spoon feeding so I can learn by my own still. Thanks in advance.

So first of all here’s how my bp works, using left mouse button I click on the dummy and store it in my CurrentTarget variable, I then cast a line trace for Objects detecting Pawn, World Static and World Dynamic. I then check if the hit resulting actor is equal to the current target stored in CurrentTarget variable, if it’s true then it means there is no obstruction of any of the above objects used for detection.

Now, I’m thinking that the problem could be with the line trace Object Types [Pawn, World Static and World Dynamic], I just don’t know how to correct it. Do I have to perform checks? If yes, how can I do it?