There is only one value of #scan for which this goto is performed. Click below.

scan = 2 (enemy)