Help with how to tell If units are hostile in Sarven Desert

Hi @AyeAyeCaptain, welcome to the CodeCombat Discourse.
Could you post your code so I can see what’s going on?
Also could you post it formatted. To see what “formatted” means, see this topic.
Thanks,
:lion: :lion: :lion: