Don't allow out-of-bounds values for variables in enemy groups