Scope stock locations by ability.

Fixes #2871