I haven't fought the barrelmech in forever, but yeah, it seems like mafia automatically takes the choice based on that fourth line: prefref choiceAdventure1102 shows it's set to 1 by default, so that would be why.
So your script uses the map, mafia sees a choice adventure with a predefined...