How to get a reference which is different from an array of characters with the same blueprint?

Game Rule :

  • IF Team A Character[array 1] Current Health (same blueprint A for 4 characters) < Team B Character[array 4] Current Health (same blueprint B for 4 characters), THEN Team A Character[array 1] will chase Team B Character[array 4]

*But when I run my game, my character gets confused, and and chases another Team B character, ex : Team A [array 1] chases Team B [array 1,2,3,4]

*Warning Alert Means? when i changed the [contains] function with [Cast To actor ] or [Cast To actor Class] I still get the same problem

*Array is public, and the references has been filled with every character in game

*I think the main problem is the comparison between each array, Team A[array] between Team B[array]

*The blueprint is in character blueprint

PLEASE HELP, THANKS! sorry for my bad english.