Launch character doesn't work in build but works well in editor

We added print string to see what’s wrong with our code and saw there was something wrong with the function we tried to build because it didn’t print the first print string, our function is designed to distinguish if the player is hitting brute commando or normal minions for our hard counter system. There’s something wrong with the function but it works well in editor, while it becomes a blocker to launch character in build.