You should move this below your unitTarget check, cause otherwise you seem to be prematurely changing your steamboots